Added test with class signature unchanged.
This commit is contained in:
@@ -41,6 +41,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
|||||||
doTest("jps-plugin/testData/incremental/classSignatureChanged/");
|
doTest("jps-plugin/testData/incremental/classSignatureChanged/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("classSignatureUnchanged")
|
||||||
|
public void testClassSignatureUnchanged() throws Exception {
|
||||||
|
doTest("jps-plugin/testData/incremental/classSignatureUnchanged/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("constantUnchanged")
|
@TestMetadata("constantUnchanged")
|
||||||
public void testConstantUnchanged() throws Exception {
|
public void testConstantUnchanged() throws Exception {
|
||||||
doTest("jps-plugin/testData/incremental/constantUnchanged/");
|
doTest("jps-plugin/testData/incremental/constantUnchanged/");
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Cleaning output files:
|
||||||
|
out/production/module/test/Klass.class
|
||||||
|
End of files
|
||||||
|
Compiling files:
|
||||||
|
src/class.kt
|
||||||
|
End of files
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
class Klass {
|
||||||
|
fun foo() = ":)"
|
||||||
|
|
||||||
|
fun bar() = ":("
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
// swapped functions
|
||||||
|
class Klass {
|
||||||
|
fun bar() = ":("
|
||||||
|
|
||||||
|
fun foo() = ":)"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
fun usage(a: Klass) {
|
||||||
|
a.foo()
|
||||||
|
a.bar()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user