Fix incremental compilation for delegated property with inline accessor
Original commit: a22e15449d
This commit is contained in:
@@ -239,6 +239,18 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("delegatedPropertyInlineExtensionAccessor")
|
||||||
|
public void testDelegatedPropertyInlineExtensionAccessor() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineExtensionAccessor/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("delegatedPropertyInlineMethodAccessor")
|
||||||
|
public void testDelegatedPropertyInlineMethodAccessor() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/delegatedPropertyInlineMethodAccessor/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("dependencyClassReferenced")
|
@TestMetadata("dependencyClassReferenced")
|
||||||
public void testDependencyClassReferenced() throws Exception {
|
public void testDependencyClassReferenced() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/dependencyClassReferenced/");
|
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/dependencyClassReferenced/");
|
||||||
|
|||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
import inline.*
|
||||||
|
|
||||||
|
class UsageVal {
|
||||||
|
val x: Int by Inline()
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
import inline.*
|
||||||
|
|
||||||
|
class UsageVar {
|
||||||
|
var x: Int by Inline()
|
||||||
|
}
|
||||||
+32
@@ -0,0 +1,32 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/inline/InlineGetKt.class
|
||||||
|
out/production/module/inline/InlinePackage.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/inlineGet.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/usage/UsageVal.class
|
||||||
|
out/production/module/usage/UsageVar.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/UsageVal.kt
|
||||||
|
src/UsageVar.kt
|
||||||
|
End of files
|
||||||
|
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/META-INF/module.kotlin_module
|
||||||
|
out/production/module/inline/InlinePackage.class
|
||||||
|
out/production/module/inline/InlineSetKt.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/inlineSet.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/usage/UsageVar.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/UsageVar.kt
|
||||||
|
End of files
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
class Inline
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
inline fun Inline.get(receiver: Any?, prop: PropertyMetadata): Int {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
inline fun Inline.get(receiver: Any?, prop: PropertyMetadata): Int {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
inline fun Inline.set(receiver: Any?, prop: PropertyMetadata, value: Int) {
|
||||||
|
println(value)
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
inline fun Inline.set(receiver: Any?, prop: PropertyMetadata, value: Int) {
|
||||||
|
println(value * 2)
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
fun other() {}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
import inline.Inline
|
||||||
|
|
||||||
|
class UsageVal {
|
||||||
|
val x: Int by Inline()
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
import inline.Inline
|
||||||
|
|
||||||
|
class UsageVar {
|
||||||
|
var x: Int by Inline()
|
||||||
|
}
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/inline/Inline.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/inline.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/usage/UsageVal.class
|
||||||
|
out/production/module/usage/UsageVar.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/UsageVal.kt
|
||||||
|
src/UsageVar.kt
|
||||||
|
End of files
|
||||||
|
|
||||||
|
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/inline/Inline.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/inline.kt
|
||||||
|
End of files
|
||||||
|
Cleaning output files:
|
||||||
|
out/production/module/usage/UsageVar.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/UsageVar.kt
|
||||||
|
End of files
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
class Inline {
|
||||||
|
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
|
||||||
|
println(value)
|
||||||
|
}
|
||||||
|
}
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
class Inline {
|
||||||
|
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
|
||||||
|
println(value)
|
||||||
|
}
|
||||||
|
}
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package inline
|
||||||
|
|
||||||
|
class Inline {
|
||||||
|
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
|
||||||
|
println(value * 2)
|
||||||
|
}
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
package usage
|
||||||
|
|
||||||
|
fun other() {}
|
||||||
Reference in New Issue
Block a user