JVM: produce a better error on @JvmStatic external in interface
Java does not permit `static native` methods in interfaces, so this never worked on any existing JRE. #KT-43696 Fixed
This commit is contained in:
Vendored
+7
@@ -18,6 +18,8 @@ interface B {
|
||||
|
||||
}
|
||||
|
||||
@JvmStatic external fun a5()
|
||||
|
||||
@JvmStatic
|
||||
var foo = 1
|
||||
|
||||
@@ -49,6 +51,11 @@ interface B {
|
||||
|
||||
public var foo9 = 1
|
||||
@JvmStatic private set
|
||||
|
||||
@JvmStatic
|
||||
val foo10: Int external get
|
||||
|
||||
val foo11: Int @JvmStatic external get
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user