mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
254 B
Kotlin
Vendored
19 lines
254 B
Kotlin
Vendored
// FILE: test/Foo.java
|
|
|
|
package test;
|
|
|
|
public class Foo {
|
|
public enum MyEnum {
|
|
A;
|
|
}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
import test.*
|
|
import test.Foo.MyEnum.A
|
|
|
|
fun box() =
|
|
if (Foo.MyEnum.A.toString() == "A" && A.toString() == "A") "OK"
|
|
else "fail"
|