Preserving annotations in incremental compilation.
Original commit: 2259cc605f
This commit is contained in:
@@ -51,6 +51,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("jps-plugin/testData/incremental"), Pattern.compile("^([^\\.]+)$"), false);
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("jps-plugin/testData/incremental"), Pattern.compile("^([^\\.]+)$"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("annotations")
|
||||||
|
public void testAnnotations() throws Exception {
|
||||||
|
doTest("jps-plugin/testData/incremental/annotations/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("classInlineFunctionChanged")
|
@TestMetadata("classInlineFunctionChanged")
|
||||||
public void testClassInlineFunctionChanged() throws Exception {
|
public void testClassInlineFunctionChanged() throws Exception {
|
||||||
doTest("jps-plugin/testData/incremental/classInlineFunctionChanged/");
|
doTest("jps-plugin/testData/incremental/classInlineFunctionChanged/");
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
annotation class Anno
|
||||||
|
|
||||||
|
[Anno] fun f() {
|
||||||
|
}
|
||||||
|
|
||||||
|
[Anno] val v1 = ""
|
||||||
|
|
||||||
|
var v2: String
|
||||||
|
get() = ""
|
||||||
|
[Anno] set(value) {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/TestPackage-other-*.class
|
||||||
|
out/production/module/test/TestPackage.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/other.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun dummyFunction() {
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun dummyFunction() {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user