[FIR] Add test for inner class based qualifier case
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
class Outer {
|
||||||
|
inner class Inner
|
||||||
|
}
|
||||||
|
|
||||||
|
val x = Outer.Inner
|
||||||
|
val klass = Outer.Inner::class
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
FILE: innerQualifier.kt
|
||||||
|
public final class Outer : R|kotlin/Any| {
|
||||||
|
public constructor(): R|Outer| {
|
||||||
|
super<R|kotlin/Any|>()
|
||||||
|
}
|
||||||
|
|
||||||
|
public final inner class Inner : R|kotlin/Any| {
|
||||||
|
public constructor(): R|Outer.Inner| {
|
||||||
|
super<R|kotlin/Any|>()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public final val x: R|kotlin/Unit| = Q|Outer.Inner|
|
||||||
|
public get(): R|kotlin/Unit|
|
||||||
|
public final val klass: R|kotlin/reflect/KClass<Outer.Inner>| = <getClass>(Q|Outer.Inner|)
|
||||||
|
public get(): R|kotlin/reflect/KClass<Outer.Inner>|
|
||||||
+5
@@ -489,6 +489,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
|
|||||||
runTest("compiler/fir/resolve/testData/resolve/expresssions/importedReceiver.kt");
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/importedReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("innerQualifier.kt")
|
||||||
|
public void testInnerQualifier() throws Exception {
|
||||||
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/innerQualifier.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambda.kt")
|
@TestMetadata("lambda.kt")
|
||||||
public void testLambda() throws Exception {
|
public void testLambda() throws Exception {
|
||||||
runTest("compiler/fir/resolve/testData/resolve/expresssions/lambda.kt");
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/lambda.kt");
|
||||||
|
|||||||
Generated
+5
@@ -489,6 +489,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
|||||||
runTest("compiler/fir/resolve/testData/resolve/expresssions/importedReceiver.kt");
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/importedReceiver.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("innerQualifier.kt")
|
||||||
|
public void testInnerQualifier() throws Exception {
|
||||||
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/innerQualifier.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("lambda.kt")
|
@TestMetadata("lambda.kt")
|
||||||
public void testLambda() throws Exception {
|
public void testLambda() throws Exception {
|
||||||
runTest("compiler/fir/resolve/testData/resolve/expresssions/lambda.kt");
|
runTest("compiler/fir/resolve/testData/resolve/expresssions/lambda.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user