cbruegg
05/28/2016, 1:49 PMpublic class Foo {
static void foo(int x) {
System.out.println("int");
}
static void foo(Integer x) {
System.out.println("Integer");
}
}
fun main(args: Array<String>) {
Foo.foo(1)
Foo.foo(1 as Int?)
}
Output:
int
Integer