Support flexible types in DataFlowValues

This commit is contained in:
Andrey Breslav
2014-06-25 15:10:36 +04:00
parent f7de0e274c
commit 45c1fa3741
4 changed files with 36 additions and 1 deletions
@@ -0,0 +1,28 @@
// FILE: p/J.java
package p;
public class J {
public J j() {return null;}
public <T> T foo() {return null;}
public <T extends J> T foo1() {return null;}
}
// FILE: k.kt
import p.*
fun test(j: J) {
j.j() : J
j.j().j()
j.j()!!.j()
val ann = j.foo<String>()
ann!!.length
ann.length
val a = j.foo<J>()
a!!.j()
a.j()
}