Files
kotlin-fork/plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts
T
Ilya Chernikov 266447120d K2 scripting: treat default import similarly to K1
namely, add them to importing scopes directly and according to the
schema used for other implicit imports, rather than adding them
to the regular script file imports. See KT-65982 for explanation.
#KT-65982 fixed
2024-02-23 22:03:44 +00:00

16 lines
240 B
Kotlin
Vendored

// SCRIPT_DEFAULT_IMPORTS: b.A
// MODULE: a
// FILE: a.java
package a;
public class A {
public static void s() { return; }
}
// FILE: aa.java
package b;
public interface A {}
//MODULE: b(a)
// FILE: b.test.kts
import a.A
val b = A.s()