mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
// FILE: test/En.java
|
||||
|
||||
package test;
|
||||
|
||||
public enum En {
|
||||
A;
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box() =
|
||||
if (simpleJavaEnum.A.toString() == "A") "OK"
|
||||
if (En.A.toString() == "A") "OK"
|
||||
else "fail"
|
||||
|
||||
Reference in New Issue
Block a user