aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/member_field_wins_over_method.zc
blob: 34680a9398ac96c2c015db99e5d1309ec1631213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// expect: 5/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct fw { int get; int get() { return 99; } }
fn main() {
	fw* a = rt.new(fw);
	a.get = 5;
	pn(a.get);
	rt.free(a);
	return 0;
}
// zc0: skip