Implement raw types (de)serialization via special TypeCapabilities

This commit is contained in:
Denis Zharkov
2015-08-03 17:52:05 +03:00
parent 3593356e1a
commit 32c23728b3
21 changed files with 215 additions and 21 deletions
@@ -0,0 +1,9 @@
package test;
import java.util.*;
public class A<T> {
A<List<T>> bar(List<Map<String, Integer>> x) { return null; }
static A rawField = null;
}
@@ -0,0 +1,7 @@
package test
val strList: List<String> = null!!
fun foo1() = A.rawField
val foo2 = A.rawField.bar(strList).bar(strList)
@@ -0,0 +1,4 @@
package test
fun foo3() = foo1().bar(strList)
val foo4 = foo2.bar(strList)
@@ -0,0 +1,2 @@
OK
OK