Added test case for custom Short class usage
This commit is contained in:
committed by
Pavel V. Talanov
parent
e1d7c9d42c
commit
2fb770ab98
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user