Generic type with Nothing in arguments compiles to raw type

This commit is contained in:
Zalim Bashorov
2015-10-12 22:41:05 +03:00
parent 8e9f1ac31a
commit 9acf3e40de
5 changed files with 127 additions and 6 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
class C<T>
fun f(p: Nothing, p1: C<Nothing>): Nothing = throw Exception()
fun f(p: Nothing, p1: C<Nothing>, p2: C<C<Nothing>>, p3: C<C<Nothing>>?): Nothing = throw Exception()
// method: _DefaultPackage::f
// jvm signature: (Ljava/lang/Void;LC;)Ljava/lang/Void;
// generic signature: (Ljava/lang/Void;LC<Ljava/lang/Void;>;)Ljava/lang/Void;
// jvm signature: (Ljava/lang/Void;LC;LC;LC;)Ljava/lang/Void;
// generic signature: null
@@ -1,6 +1,6 @@
class C<T>
fun f(p: Nothing?, p1: C<Nothing?>): Nothing? = throw Exception()
fun f(p: Nothing?, p1: C<Nothing?>, p2: C<C<Nothing?>>, p3: C<C<Nothing?>>?): Nothing? = throw Exception()
// method: _DefaultPackage::f
// jvm signature: (Ljava/lang/Void;LC;)Ljava/lang/Void;
// generic signature: (Ljava/lang/Void;LC<Ljava/lang/Void;>;)Ljava/lang/Void;
// jvm signature: (Ljava/lang/Void;LC;LC;LC;)Ljava/lang/Void;
// generic signature: null