mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Fix primitive types mapping
Use boxed version if type was enhaced to not-nullable
This commit is contained in:
7
compiler/testData/codegen/boxWithJava/enhancedPrimitives/J.java
vendored
Normal file
7
compiler/testData/codegen/boxWithJava/enhancedPrimitives/J.java
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
public class J {
|
||||
// This test checks that although type '@org.jetbrains.annotations.NotNull Integer' is perceived as simple Int,
|
||||
// it's correctly mapped to 'Lj.l.Integer' by JVM backend
|
||||
public static String test(@org.jetbrains.annotations.NotNull Integer x) {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user