KT-4204 ConstraintSystem erased after resolution completion
#KT-4204 Fixed
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
//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
|
||||
)
|
||||
Reference in New Issue
Block a user