From bfac0355bf009963034db407232d3abda420e8e9 Mon Sep 17 00:00:00 2001 From: Juan Chen Date: Wed, 20 May 2020 12:04:17 -0700 Subject: [PATCH] WIP: [FIR] unmute testKt14227 with FULL_JDK The test used to fail because it has an augmented assignment for elements in a HashMap of Strings, and "plus" fails to resolve due to ambiguity: besides String.plus, BigDecimal.plus in the standard library is also considered. BigDecimal is not resolved and thus isError returns true. During type checking, the context has isErrorTypeEqualsAnything set to true, and BigDecimal is now regarded as a super type of String and BigDecimal.plus is a valid candidate. Adding the directive "FULL_JDK" enables resolving of BigDecimal so that BigDecimal.plus is excluded. --- compiler/testData/codegen/box/operatorConventions/kt14227.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/operatorConventions/kt14227.kt b/compiler/testData/codegen/box/operatorConventions/kt14227.kt index 128689c2290..2c2047b91a3 100644 --- a/compiler/testData/codegen/box/operatorConventions/kt14227.kt +++ b/compiler/testData/codegen/box/operatorConventions/kt14227.kt @@ -1,6 +1,6 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME +// FULL_JDK import kotlin.test.* fun box(): String {