Prohibit clone() for enum classes

#KT-8972 Fixed
This commit is contained in:
Alexander Udalov
2015-08-28 09:30:17 +03:00
parent 89f3cfc704
commit 29abf94327
6 changed files with 53 additions and 0 deletions
@@ -5298,6 +5298,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("kt8972_cloneNotAllowed.kt")
public void testKt8972_cloneNotAllowed() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt");
doTest(fileName);
}
@TestMetadata("localEnums.kt")
public void testLocalEnums() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/enum/localEnums.kt");