Files
mgmt/lang/interpret_test/TestAstFunc1/fail2/main.mcl
James Shubin 43f0ddd25d lang: unification: Catch unification error on typed if expr
I found a case where we had two missing unification rules. Now fixed in
the previous commits, and including this test to show I'm responsible.
I've added the same test in two locations for redundancy and as an
example.
2019-01-20 04:19:39 -05:00

10 lines
134 B
Plaintext

import "fmt"
$x str = if true { # should fail unification
42
} else {
13
}
test "t1" {
anotherstr => fmt.printf("hello %s", $x),
}