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
This commit is contained in:
committed by
Space Team
parent
9037975758
commit
266447120d
+15
@@ -0,0 +1,15 @@
|
||||
// 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()
|
||||
Reference in New Issue
Block a user