Supported renaming default objects with default names.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class JavaUsage {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Foo.CONST);
|
||||
Foo.s();
|
||||
Foo.Baz.f();
|
||||
Foo foo = new Foo(); // not usage of default object
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Foo {
|
||||
default object Baz {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
platformStatic fun s() {
|
||||
}
|
||||
|
||||
val CONST = 42
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun main(args: Array<String>) {
|
||||
// class object usages
|
||||
Foo.f()
|
||||
val x = Foo
|
||||
|
||||
Foo.Baz.f()
|
||||
val xx = Foo.Baz
|
||||
}
|
||||
Reference in New Issue
Block a user