Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/kt4204-completeNestedCallsForInvoke.kt
T
2020-03-27 16:46:59 +03:00

25 lines
591 B
Kotlin
Vendored

//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)
}
<!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>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
)