JS backend: add simple enum test
This commit is contained in:
@@ -23,7 +23,11 @@ public class EnumTest extends SingleFileTranslationTest {
|
||||
super("enum/");
|
||||
}
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
public void testSimpleEnum() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testEnumWithInheritance() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
enum class E {
|
||||
OK
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return E.OK.name()
|
||||
}
|
||||
Reference in New Issue
Block a user