Properly verify args in string concatenation expression for interpreter
If string concatenation contains object value, then this argument will not have explicit toString call. We must find and check toString method manually. #KT-54615
This commit is contained in:
+6
@@ -20495,6 +20495,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/stdlibConstFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stringConcatenationWithObject.kt")
|
||||
public void testStringConcatenationWithObject() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/stringConcatenationWithObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("types.kt")
|
||||
public void testTypes() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user