K2: add JavaModulesIntegrationTest

#KT-60797
This commit is contained in:
Alexander Udalov
2023-08-10 22:17:59 +02:00
committed by Space Team
parent b1fb5bdde1
commit 4e706ba93e
5 changed files with 62 additions and 12 deletions
@@ -0,0 +1,7 @@
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:11:12: error: unresolved reference: javax.swing.JFrame
val s: javax.swing.JFrame? = null
^
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity between candidates: [@InlineOnly() fun println(message: Any?): Unit, @InlineOnly() fun println(message: Boolean): Unit, @InlineOnly() fun println(message: Byte): Unit, ...]
println(s)
^
COMPILATION_ERROR
@@ -0,0 +1,4 @@
compiler/testData/javaModules/releaseFlag/moduleSwing/foo/Foo.kt:5:12: error: unresolved reference: javax.swing.JFrame
val z: javax.swing.JFrame? = null
^
COMPILATION_ERROR