Inline: do more precise check before adding this@Labeled #KT-30762 Fixed

This commit is contained in:
Mikhail Glukhikh
2019-07-09 16:58:35 +03:00
parent 6605e0dfc0
commit 615aa265f5
7 changed files with 49 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
interface MySeq<T> {
fun yield(arg: T)
}
fun <T> mySeq(f: MySeq<T>.() -> Unit): MySeq<T> = null!!
class Test {
fun repro() = mySeq<Int> {
inner()
}
private fun <caret>inner() = mySeq<Double> {
yield(1.0)
}
}