19 lines
No EOL
263 B
Text
19 lines
No EOL
263 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 + 10;
|
|
}
|
|
result
|
|
}
|
|
|
|
// @no-errors
|
|
// @eval: Float(1.0) |