oden/fine/tests/expression/is.fine

18 lines
242 B
Text

class Foo {
a: f64;
}
fun test() -> f64 {
let b = new Foo { a : 23 };
let result = 0;
if b is c:Foo and c.a == 23 {
result = result + 1;
}
if b is c:Foo and c.a == 24 {
result = result + 1;
}
result
}
// @no-errors