Open KomaGR opened 5 years ago
./newton-darwin-EN ./test-bug-425.nt -P
Informational Report:
---------------------
Invariant "dist" has 2 unique kernels, each with 1 column(s)...
Kernel 0 is a valid kernel:
-1
1
The ordering of parameters is: P1 P0
Pi group 0, Pi 0 is: P0^( 1) P1^(-1)
Kernel 1 is a valid kernel:
-1
1
The ordering of parameters is: P0 P1
Pi group 1, Pi 0 is: P0^(-1) P1^( 1)
Bug seems fixed for case described in file bug-425.nt
. However, it seems that the bug still persists in the case where the unit is derived by some expression as shown in file bug-425-2.nt
. When using the symbol for acceleration (line 29) it succeeds.
See also #402.
Describe the bug Unit factor of constant definitions are not propagated correctly through low precedence operators (that is - and +). This makes statements using said constants result in Mismatched physics in expression semantic error.
To Reproduce Steps to reproduce the behavior:
lowPrecedenceOperator
s. (e.g.bar == foo + baz
)Expected behavior Compiler passes. Dimensional matrix is output.
Host OS (please complete the following information):
You local changes (please complete the following information):
empty
.git remote -v
: