FIR: Add test for type resolution when referenced nested class from supertypes
This commit is contained in:
+6
@@ -34746,6 +34746,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
public void testSamOverloadsWithKtFunctionWithoutRefinedSams() throws Exception {
|
public void testSamOverloadsWithKtFunctionWithoutRefinedSams() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("sameNameClassesFromSupertypes.kt")
|
||||||
|
public void testSameNameClassesFromSupertypes() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/sameNameClassesFromSupertypes.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
|
// SKIP_TXT
|
||||||
|
|
||||||
|
abstract class MostBase {
|
||||||
|
inner class Inner(
|
||||||
|
val bad: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class Base : MostBase() {
|
||||||
|
inner class Inner(
|
||||||
|
val name: String?,
|
||||||
|
val res: Int,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
class A : Base() {
|
||||||
|
fun foo(l: List<Inner>) {
|
||||||
|
val m = l.groupBy(Inner::name)
|
||||||
|
m[""]!![0].res
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -34842,6 +34842,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
public void testSamOverloadsWithKtFunctionWithoutRefinedSams() throws Exception {
|
public void testSamOverloadsWithKtFunctionWithoutRefinedSams() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/samOverloadsWithKtFunctionWithoutRefinedSams.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("sameNameClassesFromSupertypes.kt")
|
||||||
|
public void testSameNameClassesFromSupertypes() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/sameNameClassesFromSupertypes.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Reference in New Issue
Block a user