KT-549 type inference failed

KT-580 Type inference failed
KT-600 Problem with 'sure' extension function type inference
KT-571 Type inference failed
This commit is contained in:
Andrey Breslav
2011-11-24 22:56:14 +03:00
parent 0ff639fd68
commit aba6b3d6b9
10 changed files with 167 additions and 36 deletions
@@ -19,7 +19,7 @@ fun t3() {
fun t4() {
val e: E? = E()
System.out?.println(e?.foo() == e) //verify error
System.out?.println(e?.bar() == e) //verify error
System.out?.println(e?.foo()) //verify error
}
@@ -35,4 +35,5 @@ class C(val x: Int)
class D(val s: String)
class E() {
fun foo() = 1
fun bar() = this
}