Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/kt4204-completeNestedCallsForInvoke.kt
T
2013-11-22 18:57:59 +04:00

25 lines
541 B
Kotlin

//KT-4204 ConstraintSystem erased after resolution completion
package c
public abstract class TestBug1() {
public fun m3(<!UNUSED_PARAMETER!>position<!>: Int) {
position(m1().second<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>)
}
public fun m4(position: (Int)->Int) {
position(m1().second)
}
private abstract fun m1(): Pair<Int, Int>
private fun position(<!UNUSED_PARAMETER!>p<!>: Int) {}
}
//from library
public class Pair<out A, out B> (
public val first: A,
public val second: B
)