Forbid @Synchronized annotation on suspend functions
and lambdas. With warning for now. #KT-27333
This commit is contained in:
+6
@@ -36134,6 +36134,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
public void testSynchronizedOnInline() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("synchronizedOnSuspend.kt")
|
||||
public void testSynchronizedOnSuspend() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnSuspend.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -36134,6 +36134,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
public void testSynchronizedOnInline() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("synchronizedOnSuspend.kt")
|
||||
public void testSynchronizedOnSuspend() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnSuspend.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user