Add test for KT-26064

This commit is contained in:
Alexey Tsvetkov
2018-08-13 02:01:29 +03:00
committed by Anton Bannykh
parent 1a3dd67176
commit 3b4a49eebf
16 changed files with 75 additions and 0 deletions
@@ -361,6 +361,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
runTest("jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
}
@TestMetadata("overloadInlined")
public void testOverloadInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/overloadInlined/");
}
@TestMetadata("packageConstantChanged")
public void testPackageConstantChanged() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/packageConstantChanged/");
@@ -551,6 +556,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
runTest("jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
}
@TestMetadata("secondaryConstructorInlined")
public void testSecondaryConstructorInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("simpleClassDependency")
public void testSimpleClassDependency() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/simpleClassDependency/");
@@ -361,6 +361,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
runTest("jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
}
@TestMetadata("overloadInlined")
public void testOverloadInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/overloadInlined/");
}
@TestMetadata("packageConstantChanged")
public void testPackageConstantChanged() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/packageConstantChanged/");
@@ -551,6 +556,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
runTest("jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
}
@TestMetadata("secondaryConstructorInlined")
public void testSecondaryConstructorInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("simpleClassDependency")
public void testSimpleClassDependency() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/simpleClassDependency/");
@@ -909,6 +909,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
runTest("jps-plugin/testData/incremental/pureKotlin/ourClassReferenced/");
}
@TestMetadata("overloadInlined")
public void testOverloadInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/overloadInlined/");
}
@TestMetadata("packageConstantChanged")
public void testPackageConstantChanged() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/packageConstantChanged/");
@@ -1099,6 +1104,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
runTest("jps-plugin/testData/incremental/pureKotlin/returnTypeChanged/");
}
@TestMetadata("secondaryConstructorInlined")
public void testSecondaryConstructorInlined() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("simpleClassDependency")
public void testSimpleClassDependency() throws Exception {
runTest("jps-plugin/testData/incremental/pureKotlin/simpleClassDependency/");
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/DummyKt.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/dummy.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,2 @@
fun overloaded(x: Int) {}
fun overloaded(s: String) {}
@@ -0,0 +1,3 @@
inline fun overloadedInline() {
overloaded("overloadedInline")
}
@@ -0,0 +1,3 @@
fun useOverloaded() {
overloaded("useOverloadedInline")
}
@@ -0,0 +1,3 @@
fun useOverloadedInline() {
overloadedInline()
}
@@ -0,0 +1,4 @@
class Err constructor(msg: String?, unused: Any?) {
constructor() : this(null, null)
constructor(msg: String) : this(msg, null)
}
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/DummyKt.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/dummy.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,3 @@
inline fun createErr() {
Err("createErr")
}
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,3 @@
fun useCreateErr() {
createErr()
}