KT-15309 Don't apply "Fix with 'asDynamic'" to member extension funcitons
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// "Fix with 'asDynamic'" "true"
|
||||
// JS
|
||||
// ERROR: Declaration of such kind (extension function) cant be external
|
||||
|
||||
external class B {
|
||||
@nativeGetter
|
||||
@@ -15,4 +16,6 @@ external class B {
|
||||
fun<T> exp(t: T)
|
||||
|
||||
fun dontTouch(): Nothing = definedExternally
|
||||
|
||||
fun B.doNotTouchNestedExtensionMembers(): Nothing = definedExternally
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
// "Fix with 'asDynamic'" "true"
|
||||
// JS
|
||||
// ERROR: Declaration of such kind (extension function) cant be external
|
||||
|
||||
external class B {
|
||||
|
||||
fun dontTouch(): Nothing = definedExternally
|
||||
|
||||
fun B.doNotTouchNestedExtensionMembers(): Nothing = definedExternally
|
||||
}
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
|
||||
Reference in New Issue
Block a user