summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/refactoring/inline/namedFunction/Sequence.kt.after
blob: c74d73d93afefde6ab451d077eafed14ba7cd8cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
interface MySeq<T> {
    fun yield(arg: T)
}

fun <T> mySeq(f: MySeq<T>.() -> Unit): MySeq<T> = null!!

class Test {
    fun repro() = mySeq<Int> {
        mySeq {
            this.yield(1.0)
        }
    }

}