Fix incremental compilation for calls to inner classes from supertypes
The problem became actual after bba1c88c8e634b707bb39522129d226add3fa90d
Original commit: 3ce980fd88
This commit is contained in:
committed by
Ilya Muradyan
parent
e9abd4dbf7
commit
50725dcde2
+5
@@ -979,6 +979,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
|
|||||||
runTest("jps-plugin/testData/incremental/pureKotlin/inlineUsedWhereDeclared/");
|
runTest("jps-plugin/testData/incremental/pureKotlin/inlineUsedWhereDeclared/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("innerClassesFromSupertypes")
|
||||||
|
public void testInnerClassesFromSupertypes() throws Exception {
|
||||||
|
runTest("jps-plugin/testData/incremental/pureKotlin/innerClassesFromSupertypes/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("internalClassChanged")
|
@TestMetadata("internalClassChanged")
|
||||||
public void testInternalClassChanged() throws Exception {
|
public void testInternalClassChanged() throws Exception {
|
||||||
runTest("jps-plugin/testData/incremental/pureKotlin/internalClassChanged/");
|
runTest("jps-plugin/testData/incremental/pureKotlin/internalClassChanged/");
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
abstract class A {
|
||||||
|
inner class Inner(val x: String)
|
||||||
|
}
|
||||||
|
abstract class B : A()
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// TODO add var
|
||||||
|
package test
|
||||||
|
|
||||||
|
class C : B() {
|
||||||
|
val i = Inner("")
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
================ Step #1 =================
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/test/C.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/b.kt
|
||||||
|
End of files
|
||||||
|
Exit code: OK
|
||||||
|
------------------------------------------
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
C().i.x
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user