JS: prohibit native (external) extension properties and functions. See KT-13896
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class A
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>external fun A.foo(): Unit = noImpl<!>
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>external var A.bar: String
|
||||
get() = noImpl
|
||||
set(value) = noImpl<!>
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>external val A.baz: String
|
||||
get() = noImpl<!>
|
||||
Reference in New Issue
Block a user