File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
js/js.translator/src/org/jetbrains/kotlin/js/translate/reference Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ object CallableReferenceTranslator {
46
46
val descriptor = BindingUtils .getDescriptorForReferenceExpression(context.bindingContext(), expression.callableReference)
47
47
48
48
val receiver = expression.receiverExpression?.let { r ->
49
- if (context.bindingContext().get(BindingContext .DOUBLE_COLON_LHS , r) is DoubleColonLHS .Expression ) {
49
+ if (context.bindingContext().get(BindingContext .DOUBLE_COLON_LHS , r) is DoubleColonLHS .Expression &&
50
+ descriptor is CallableMemberDescriptor &&
51
+ descriptor.dispatchReceiverParameter ? : descriptor.extensionReceiverParameter != null
52
+ ) {
50
53
val block = JsBlock ()
51
54
val e = Translation .translateAsExpression(r, context, block)
52
55
if (! block.isEmpty) {
You can’t perform that action at this time.
0 commit comments