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

class Foo {
	async void foo () {
	}

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

void main () {
}