Don't allow use standalone constants in complexExpressions, fix for KT-11043: Inconsisten result for class literal and string concatenation

#KT-11043 Fixed
This commit is contained in:
Michael Bogdanov
2016-02-16 15:48:58 +03:00
parent af3437626b
commit 7c2920febe
4 changed files with 103 additions and 0 deletions
@@ -1163,6 +1163,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("standaloneInExpression.kt")
public void testStandaloneInExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/annotationParameterMustBeConstant/standaloneInExpression.kt");
doTest(fileName);
}
@TestMetadata("strings.kt")
public void testStrings() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/annotationParameterMustBeConstant/strings.kt");