KT-4204 ConstraintSystem erased after resolution completion

#KT-4204 Fixed
This commit is contained in:
svtk
2013-11-19 19:05:31 +04:00
parent 5d95fa99bd
commit 2bd4aa97c6
3 changed files with 34 additions and 4 deletions
@@ -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
)