KT-13161 java static methods call not working for typealias
Introduce special qualifier for type aliases with member scope containing static class members only.
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// FILE: JTest.java
|
||||
public class JTest {
|
||||
public static String o() { return "O"; }
|
||||
public static final String K = "K";
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
typealias JT = JTest
|
||||
|
||||
fun box(): String = JT.o() + JT.K
|
||||
Reference in New Issue
Block a user