diff --git a/compiler/testData/codegen/regressions/kt2626.kt b/compiler/testData/codegen/regressions/kt2626.kt new file mode 100644 index 00000000000..284686d9fb8 --- /dev/null +++ b/compiler/testData/codegen/regressions/kt2626.kt @@ -0,0 +1,10 @@ +package example2 + +fun box() = Context.OsType.OK.toString() + +object Context +{ + public enum class OsType { + WIN2000; WINDOWS; MACOSX; LINUX; OTHER; OK + } +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java index 5f42939c40a..e830455e209 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/ClassGenTest.java @@ -590,4 +590,9 @@ public class ClassGenTest extends CodegenTestCase { createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); blackBoxFile("regressions/kt2711.kt"); } + + public void testKt2626() { + createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY); + blackBoxFile("regressions/kt2626.kt"); + } }