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:
pyos
2021-07-14 12:07:36 +02:00
committed by Alexander Udalov
parent ad7ed483f3
commit f5dd5ead1f
12 changed files with 55 additions and 3 deletions
@@ -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
}
}