mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fix for KT-7999: Wrong result when use nullable types as reified parameter, KT-8043: Unsafe cast to reified parameter throws NPE instead of TypeCastException
#KT-7999 Fixed #KT-8043 Fixed ~
This commit is contained in:
11
compiler/testData/codegen/boxWithJava/reified/isCheck/JavaClass.java
vendored
Normal file
11
compiler/testData/codegen/boxWithJava/reified/isCheck/JavaClass.java
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
public class JavaClass {
|
||||
|
||||
public static String nullString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String nonnullString() {
|
||||
return "OK";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user