mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Restrict companion properties copying to interface by const
This commit is contained in:
@@ -8,9 +8,6 @@ class Test {
|
||||
s = Trait.NAME;
|
||||
if (!s.equals("Trait")) throw new AssertionError("Fail interface: " + s);
|
||||
|
||||
s = Trait.DEPRECATED;
|
||||
if (!s.equals("DEPRECATED")) throw new AssertionError("Fail interface: " + s);
|
||||
|
||||
s = Enoom.NAME;
|
||||
if (!s.equals("Enum")) throw new AssertionError("Fail enum: " + s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user