Prohibit unsupported suspend operators

contains/get/set operators don't work properly on both backends

Also add box test checking that 'compareTo' operator works just fine

 #KT-16219 Fixed
This commit is contained in:
Denis Zharkov
2017-02-07 18:48:02 +03:00
parent 4921bd822d
commit 80638ebc99
6 changed files with 114 additions and 1 deletions
@@ -773,6 +773,12 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
doTest(fileName);
}
@TestMetadata("operators.kt")
public void testOperators() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/coroutines/operators.kt");
doTest(fileName);
}
@TestMetadata("suspendApplicability.kt")
public void testSuspendApplicability() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendApplicability.kt");