JS: prohibit native (external) extension properties and functions. See KT-13896

This commit is contained in:
Alexey Andreev
2016-11-28 11:38:29 +03:00
parent cf25e17209
commit 3882bf7564
36 changed files with 48 additions and 346 deletions
@@ -28,9 +28,9 @@ package foo
// CHECK_NOT_CALLED: moveTo
external fun Array<Int>.push(element: Int): Unit = noImpl
inline fun Array<Int>.push(element: Int): Unit = asDynamic().push(element)
external fun Array<Int>.splice(index: Int, howMany: Int): Unit = noImpl
inline fun Array<Int>.splice(index: Int, howMany: Int): Unit = asDynamic().splice(index, howMany)
data class PairArray<T, R>(val fst: Array<T>, val snd: Array<R>)