JS: prohibit external functions and accessors with bodies other than noImpl. Prohibit to use anything except noImpl for default parameters initializers in external functions. See KT-13892
This commit is contained in:
@@ -24,11 +24,11 @@ external class TopLevelNative {
|
||||
|
||||
class B
|
||||
|
||||
fun foo() = 23
|
||||
fun foo(): Int = noImpl
|
||||
|
||||
<!NESTED_EXTERNAL_DECLARATION!>external fun bar(): Int<!>
|
||||
|
||||
val x = "a"
|
||||
val x: String = noImpl
|
||||
|
||||
<!NESTED_EXTERNAL_DECLARATION!>external val y: String<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user