Added test case for custom Short class usage

This commit is contained in:
Santeri Hiltunen
2013-02-18 14:12:01 +02:00
committed by Pavel V. Talanov
parent e1d7c9d42c
commit 2fb770ab98
2 changed files with 30 additions and 0 deletions
@@ -0,0 +1,13 @@
package test;
public class Short {
public static Short valueOf(String value) {return new Short();}
}
class Test {
public static void test() {
Short.valueOf("1");
test.Short.valueOf("1");
java.lang.Short.valueOf("1");
}
}
@@ -0,0 +1,17 @@
package test
public open class Short() {
class object {
public open fun valueOf(value : String?) : Short? {
return Short()
}
}
}
open class Test() {
class object {
public open fun test() : Unit {
test.Short.valueOf("1")
test.Short.valueOf("1")
java.lang.Short.valueOf("1")
}
}
}