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

class Foo {
	string? prop { get; set; }

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

void main() {
}