Inline: do more precise check before adding this@Labeled #KT-30762 Fixed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user