2bd4aa97c6
#KT-4204 Fixed
25 lines
541 B
Kotlin
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
|
|
)
|