12 lines
241 B
Text
12 lines
241 B
Text
class Foo {
|
|
foo: f64;
|
|
}
|
|
|
|
fun test() {
|
|
let f = new Foo { foo: 12 };
|
|
let z = f.{let y = 222; foo };
|
|
}
|
|
|
|
// @expect-errors:
|
|
// | 7:12: Error at '{': expected an identifier after a '.' in member access
|
|
// | 7:26: cannot find value foo here
|