summaryrefslogtreecommitdiff
path: root/tests/semantic/yield-call-requires-async-method.test
blob: 0ed9017a6af692f802f0a0ccaf718a34b31ab5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Invalid Code

class Foo {
	void foo () {
	}

	async void bar () {
		yield foo ();
	}
}

void main () {
}