Calls to Java's primitive class methods work.

Calls to Java's primitive classes that had the same name as the
corresponding primitive in Kotlin didn't work. Now calls like
Short.valueOf() is turned to java.lang.Short.valueOf() in Kotlin.
This commit is contained in:
Santeri Hiltunen
2013-02-11 11:01:34 +02:00
committed by Pavel V. Talanov
parent 1fe978e216
commit b45b0e6c3a
3 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package demo;
class Test {
void test() {
Integer i = Integer.valueOf(100);
Short s = Short.valueOf(100);
short s = 3;
Short ss = Short.valueOf(s);
}
}
+2 -1
View File
@@ -2,6 +2,7 @@ package demo
open class Test() {
open fun test() : Unit {
var i : Int? = Integer.valueOf(100)
var s : Short? = Short.valueOf(100)
var s : Short = 3
var ss : Short? = java.lang.Short.valueOf(s)
}
}