Few minor changes, clippy fixes, and test fixes

This commit is contained in:
microproofs
2024-08-03 01:43:43 -04:00
committed by Kasey
parent 4cf81a19b1
commit 8a461d5bd5
5 changed files with 323 additions and 263 deletions

View File

@@ -0,0 +1,36 @@
type Foo {
msg: Int,
}
type Bar {
Buzz
Bazz
}
test thing() {
let data: Data = Buzz
if data is Foo {
False
} else {
True
}
}
type A<x> {
NoA
SomeA(Void, x)
}
type B {
something: Void,
}
test err_example() {
let r: Data = SomeA(Void, B(Void))
expect x: A<B> = r
when x is {
NoA -> False
SomeA(_, B(something)) -> something == Void
}
}