mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: add RMul, RDiv
* `And` has the default type index * impl `Dimension` traits
This commit is contained in:
parent
4651a383ae
commit
ff53af0cb6
17 changed files with 323 additions and 118 deletions
|
@ -11,3 +11,7 @@ j: Joule
|
|||
f _: Kg = None
|
||||
f kg
|
||||
f kg/m*m
|
||||
|
||||
w = 2.0kg
|
||||
assert w >= 1.0kg
|
||||
assert int(w.value()) == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue