Add CLI test for K/javac project with non-transitive dependency, KT-33932

This commit is contained in:
Mikhail Glukhikh
2019-10-18 12:29:05 +03:00
parent 87e2f9d96b
commit 91a58fffb8
5 changed files with 16 additions and 0 deletions
@@ -0,0 +1,4 @@
package my;
public class Base {
private Some some;
}
@@ -0,0 +1,5 @@
package my;
public class Some {
private int foo = 42;
public int getFoo() { return foo; }
}
@@ -0,0 +1,2 @@
package my
class First : Base()
@@ -203,6 +203,10 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
doTestBrokenLibrary("library", "a/A.class")
}
fun testNonTransitiveDependencyWithJavac() {
doTestBrokenLibrary("library", "my/Some.class", additionalOptions = listOf("-Xuse-javac", "-Xcompile-java"))
}
fun testComputeSupertypeWithMissingDependency() {
doTestBrokenLibrary("library", "a/A.class")
}