KT-15309 Don't apply "Fix with 'asDynamic'" to member extension funcitons

This commit is contained in:
qx
2017-05-19 21:00:58 +03:00
parent 7f73e9f4f7
commit bc14ce740a
5 changed files with 14 additions and 3 deletions
@@ -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")