Fix JetType.equals(): flexible types are not equal to non-flexible ones, when we store them in a HashSet

This commit is contained in:
Andrey Breslav
2014-10-07 14:05:55 +04:00
parent 5be4dda58b
commit e418a763db
12 changed files with 89 additions and 8 deletions
@@ -0,0 +1,17 @@
// FILE: p/J.java
package p;
public interface J {
public interface Super<T> {}
public interface Sub<T> extends Super<T> {}
}
// FILE: k.kt
import p.J.*
class Foo<T>: Sub<T> {
fun foo(): Super<T> {
return <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>Foo<!>()
}
}