Add test for KT-49653
This commit is contained in:
committed by
TeamCityServer
parent
9ff46004e4
commit
c2ab09fa84
+6
@@ -9688,6 +9688,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
|||||||
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("declaringClass.kt")
|
||||||
|
public void testDeclaringClass() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/enum/declaringClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
||||||
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
||||||
|
|||||||
+6
@@ -9688,6 +9688,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("declaringClass.kt")
|
||||||
|
public void testDeclaringClass() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/enum/declaringClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
||||||
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
||||||
|
|||||||
+6
@@ -9688,6 +9688,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
|||||||
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("declaringClass.kt")
|
||||||
|
public void testDeclaringClass() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/enum/declaringClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
||||||
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// FULL_JDK
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
|
fun <E : Enum<E>> foo(values: Array<E>) {
|
||||||
|
EnumSet.noneOf(values.first().<!UNRESOLVED_REFERENCE!>declaringClass<!>)
|
||||||
|
EnumSet.noneOf(values.first().<!UNRESOLVED_REFERENCE!>getDeclaringClass<!>())
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// FULL_JDK
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
|
fun <E : Enum<E>> foo(values: Array<E>) {
|
||||||
|
EnumSet.noneOf(values.first().declaringClass)
|
||||||
|
EnumSet.noneOf(values.first().<!UNRESOLVED_REFERENCE!>getDeclaringClass<!>())
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public fun </*0*/ E : kotlin.Enum<E>> foo(/*0*/ values: kotlin.Array<E>): kotlin.Unit
|
||||||
Generated
+6
@@ -9694,6 +9694,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
runTest("compiler/testData/diagnostics/tests/enum/constructorWithDefaultParametersOnly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("declaringClass.kt")
|
||||||
|
public void testDeclaringClass() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/enum/declaringClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
@TestMetadata("dontCreatePackageTypeForEnumEntry_after.kt")
|
||||||
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
public void testDontCreatePackageTypeForEnumEntry_after() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user