[FIR] Reproduce KT-66005
^KT-66005
This commit is contained in:
committed by
Space Team
parent
eb85caedad
commit
b0e6db7807
+6
@@ -207,6 +207,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/CompareToWithErrorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compareWithReified.kt")
|
||||
public void testCompareWithReified() {
|
||||
runTest("compiler/testData/diagnostics/tests/compareWithReified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("comparingArbitraryClasses.kt")
|
||||
public void testComparingArbitraryClasses() {
|
||||
|
||||
+6
@@ -207,6 +207,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/CompareToWithErrorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compareWithReified.kt")
|
||||
public void testCompareWithReified() {
|
||||
runTest("compiler/testData/diagnostics/tests/compareWithReified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("comparingArbitraryClasses.kt")
|
||||
public void testComparingArbitraryClasses() {
|
||||
|
||||
+6
@@ -207,6 +207,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/CompareToWithErrorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compareWithReified.kt")
|
||||
public void testCompareWithReified() {
|
||||
runTest("compiler/testData/diagnostics/tests/compareWithReified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("comparingArbitraryClasses.kt")
|
||||
public void testComparingArbitraryClasses() {
|
||||
|
||||
+6
@@ -207,6 +207,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/CompareToWithErrorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compareWithReified.kt")
|
||||
public void testCompareWithReified() {
|
||||
runTest("compiler/testData/diagnostics/tests/compareWithReified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("comparingArbitraryClasses.kt")
|
||||
public void testComparingArbitraryClasses() {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// ISSUE: KT-66005
|
||||
|
||||
inline fun <reified T> foo(v: T) {
|
||||
T == Int
|
||||
// This is a comparison of companion objects
|
||||
Int == Int
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// ISSUE: KT-66005
|
||||
|
||||
inline fun <reified T> foo(v: T) {
|
||||
<!TYPE_PARAMETER_IS_NOT_AN_EXPRESSION!>T<!> <!DEBUG_INFO_MISSING_UNRESOLVED!>==<!> Int
|
||||
// This is a comparison of companion objects
|
||||
Int == Int
|
||||
}
|
||||
Generated
+6
@@ -207,6 +207,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/CompareToWithErrorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compareWithReified.kt")
|
||||
public void testCompareWithReified() {
|
||||
runTest("compiler/testData/diagnostics/tests/compareWithReified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("comparingArbitraryClasses.kt")
|
||||
public void testComparingArbitraryClasses() {
|
||||
|
||||
Reference in New Issue
Block a user