Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow dimensionless base units #381

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Disallow dimensionless base units #381

merged 1 commit into from
Feb 24, 2024

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Feb 24, 2024

Will now show a new error:

>>> unit page: Scalar
error: while type checking
  ┌─ <input:1>:1:6
  │
1 │ unit page: Scalar
  │      ^^^^ Base units can not be dimensionless.
  │
  = Use 'unit page' for ad-hoc units.
  = Use 'unit page: Scalar = …' for derived units.

closes #308

Will now show a new error:

    >>> unit page: Scalar
    error: while type checking
      ┌─ <input:1>:1:6
      │
    1 │ unit page: Scalar
      │      ^^^^ Base units can not be dimensionless.
      │
      = Use 'unit page' for ad-hoc units.
      = Use 'unit page: Scalar = …' for derived units.

closes #308
@sharkdp sharkdp merged commit 9466849 into master Feb 24, 2024
15 checks passed
@sharkdp sharkdp deleted the fix-308 branch February 24, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not allow base units of dimension 1
1 participant