Add test for KT-49200 deprecation
This commit is contained in:
+6
@@ -12934,6 +12934,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
|||||||
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("EnumEntryVsStaticAmbiguity.kt")
|
||||||
|
public void testEnumEntryVsStaticAmbiguity() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
||||||
public void testExplicitImportsAmbiguity() throws Exception {
|
public void testExplicitImportsAmbiguity() throws Exception {
|
||||||
|
|||||||
+6
@@ -12934,6 +12934,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("EnumEntryVsStaticAmbiguity.kt")
|
||||||
|
public void testEnumEntryVsStaticAmbiguity() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
||||||
public void testExplicitImportsAmbiguity() throws Exception {
|
public void testExplicitImportsAmbiguity() throws Exception {
|
||||||
|
|||||||
+6
@@ -12934,6 +12934,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
|||||||
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("EnumEntryVsStaticAmbiguity.kt")
|
||||||
|
public void testEnumEntryVsStaticAmbiguity() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
||||||
public void testExplicitImportsAmbiguity() throws Exception {
|
public void testExplicitImportsAmbiguity() throws Exception {
|
||||||
|
|||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
// KT-49200
|
||||||
|
// FILE: first/KtNodeTypes.java
|
||||||
|
|
||||||
|
package first;
|
||||||
|
|
||||||
|
public interface KtNodeTypes {
|
||||||
|
String SOME = "Some";
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: SomeEnum.kt
|
||||||
|
|
||||||
|
package second
|
||||||
|
|
||||||
|
enum class SomeEnum {
|
||||||
|
SOME;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: test.kt
|
||||||
|
|
||||||
|
import first.KtNodeTypes.*
|
||||||
|
import second.SomeEnum.*
|
||||||
|
|
||||||
|
fun test(arg: String): Boolean {
|
||||||
|
return when (arg) {
|
||||||
|
<!OVERLOAD_RESOLUTION_AMBIGUITY!>SOME<!> -> true
|
||||||
|
else -> false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// KT-49200
|
||||||
|
// FILE: first/KtNodeTypes.java
|
||||||
|
|
||||||
|
package first;
|
||||||
|
|
||||||
|
public interface KtNodeTypes {
|
||||||
|
String SOME = "Some";
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: SomeEnum.kt
|
||||||
|
|
||||||
|
package second
|
||||||
|
|
||||||
|
enum class SomeEnum {
|
||||||
|
SOME;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: test.kt
|
||||||
|
|
||||||
|
import first.KtNodeTypes.*
|
||||||
|
import second.SomeEnum.*
|
||||||
|
|
||||||
|
fun test(arg: String): Boolean {
|
||||||
|
return when (arg) {
|
||||||
|
SOME -> true
|
||||||
|
else -> false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public fun test(/*0*/ arg: kotlin.String): kotlin.Boolean
|
||||||
|
|
||||||
|
package first {
|
||||||
|
|
||||||
|
public interface KtNodeTypes {
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|
||||||
|
// Static members
|
||||||
|
public const final val SOME: kotlin.String = "Some"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
package second {
|
||||||
|
|
||||||
|
public final enum class SomeEnum : kotlin.Enum<second.SomeEnum> {
|
||||||
|
enum entry SOME
|
||||||
|
|
||||||
|
private constructor SomeEnum()
|
||||||
|
@kotlin.internal.IntrinsicConstEvaluation public final override /*1*/ /*fake_override*/ val name: kotlin.String
|
||||||
|
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
|
||||||
|
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||||
|
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: second.SomeEnum): kotlin.Int
|
||||||
|
public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit
|
||||||
|
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<second.SomeEnum!>!
|
||||||
|
public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|
||||||
|
// Static members
|
||||||
|
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): second.SomeEnum
|
||||||
|
public final /*synthesized*/ fun values(): kotlin.Array<second.SomeEnum>
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -12940,6 +12940,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
runTest("compiler/testData/diagnostics/tests/imports/DoubleImports.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("EnumEntryVsStaticAmbiguity.kt")
|
||||||
|
public void testEnumEntryVsStaticAmbiguity() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/imports/EnumEntryVsStaticAmbiguity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
@TestMetadata("ExplicitImportsAmbiguity.kt")
|
||||||
public void testExplicitImportsAmbiguity() throws Exception {
|
public void testExplicitImportsAmbiguity() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user