[JS IR BE] Support calls, property accesses and most of operators on expressions with dynamic type

This commit is contained in:
Zalim Bashorov
2018-07-25 13:56:27 +03:00
parent 4a7ecaa908
commit 0da14e4189
9 changed files with 76 additions and 22 deletions
@@ -1,8 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin
interface Annotation
@@ -1,10 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin.internal
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY)
internal annotation class DynamicExtension
@@ -5,9 +5,6 @@
package kotlin.js
@kotlin.internal.DynamicExtension
public inline fun <T> dynamic.unsafeCast(): T = this
private fun isInterfaceImpl(ctor: dynamic, iface: dynamic): Boolean {
if (ctor === iface) return true;