JS backend: added the support dynamic.

This commit is contained in:
Zalim Bashorov
2014-12-09 22:06:01 +03:00
parent 45b0fd9f4c
commit bc3f53afff
9 changed files with 133 additions and 4 deletions
@@ -179,7 +179,7 @@ object DynamicCallableDescriptors {
}
}
fun DeclarationDescriptor.isDynamic(): Boolean {
public fun DeclarationDescriptor.isDynamic(): Boolean {
if (this !is CallableDescriptor) return false
val dispatchReceiverParameter = getDispatchReceiverParameter()
return dispatchReceiverParameter != null && dispatchReceiverParameter.getType().isDynamic()