[IC] Add test for potential sam change in kotlin-java interop
JPS tests were fixed on IJ side during implementation of JPS on graph Relates to KT-21534
This commit is contained in:
committed by
Space Team
parent
49ae1b8d01
commit
5150812838
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public class JavaClass {
|
||||
public void foo(Integer param) {
|
||||
System.out.println("member");
|
||||
}
|
||||
}
|
||||
jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/potentialSamAdapter/JavaClass.java.new
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public class JavaClass {
|
||||
public void foo(String param) {
|
||||
System.out.println("member");
|
||||
}
|
||||
}
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/JavaClass.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/JavaClass.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/MainKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/main.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fun JavaClass.foo(x: String) {
|
||||
println("extension")
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
JavaClass().foo("str")
|
||||
}
|
||||
//KT-21534
|
||||
Reference in New Issue
Block a user