summaryrefslogtreecommitdiff
path: root/tests/semantic/field-static-instance-access.test
blob: e0b045a3c594347fc65589419929e1c4301bea93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Invalid Code

class Foo {
	string? field;

	static void foo () {
		if (field == null) {
		}
	}
}

void main() {
}