Prohibit inline lambda parameters of suspend function type

#KT-16068 Fixed
This commit is contained in:
Denis Zharkov
2017-01-31 11:11:14 +03:00
parent 67835b642d
commit 39fc1789e0
6 changed files with 62 additions and 2 deletions
@@ -12,7 +12,7 @@ class MyTest {
}
}
inline suspend fun <T> testAsync(routine: suspend MyTest.() -> T): T = routine(MyTest())
inline suspend fun <T> testAsync(noinline routine: suspend MyTest.() -> T): T = routine(MyTest())
inline suspend fun Iterable<String>.test() = testAsync {
var sum = ""