JS: don't translate RHS of overloaded assignment operators twice. It can break compilation in some cases, for example, when there are lambdas in RHS.

Fix #KT-12808 #KT-12807
This commit is contained in:
Alexey Andreev
2016-07-08 15:15:34 +03:00
parent 996c1b6f87
commit cb2c8edaf9
5 changed files with 57 additions and 16 deletions
@@ -120,4 +120,8 @@ public final class OperatorOverloadingTest extends SingleFileTranslationTest {
public void testOverloadUnaryOperationsViaExtensionFunctions() throws Exception {
fooBoxTest();
}
public void testLambdaRhs() throws Exception {
checkFooBoxIsOk();
}
}