KT-313 Bug in substitutions in a function returning its type parameter T

This commit is contained in:
Andrey Breslav
2011-11-12 20:29:38 +04:00
parent 8d8145c3d2
commit c74a0a62cc
12 changed files with 36 additions and 20 deletions
@@ -38,7 +38,7 @@ public class ArrayGenTest extends CodegenTestCase {
}
public void testCreateMultiGenerics () throws Exception {
loadText("class L<T>() { val a = Array<T>(5) } fun foo() = L<Int>.a");
loadText("class L<T>() { val a = Array<T?>(5) } fun foo() = L<Int>.a");
System.out.println(generateToText());
Method foo = generateFunction();
Object invoke = foo.invoke(null);