test for obsolete KT-2626

This commit is contained in:
Alex Tkachman
2012-09-11 15:51:16 +03:00
parent 199f10034b
commit 4eea0cafb9
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,10 @@
package example2
fun box() = Context.OsType.OK.toString()
object Context
{
public enum class OsType {
WIN2000; WINDOWS; MACOSX; LINUX; OTHER; OK
}
}
@@ -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");
}
}