Add CLI test for K/javac project with K/J interdependency
Yet this test fails if JavacWrapper does not add Kotlin output dir to classpath
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
public class ClassWithTypeParameter<T extends KotlinInterface> {
|
||||
|
||||
public ClassWithTypeParameter(T kotlinInterface) {}
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
interface KotlinInterface
|
||||
|
||||
class Impl1 : KotlinInterface
|
||||
|
||||
class Impl2 : KotlinInterface
|
||||
|
||||
class Impl3 : KotlinInterface
|
||||
|
||||
fun getProducer1() = Impl1().let(::ClassWithTypeParameter)
|
||||
|
||||
fun getProducer2() = Impl2().let(::ClassWithTypeParameter)
|
||||
|
||||
fun getProducer3() = Impl3().let(::ClassWithTypeParameter)
|
||||
Reference in New Issue
Block a user