Report warning on @Synchronized on inline methods

Until KT-27310 is supported, we warn users that this has no effect.

 #KT-29884 Fixed
This commit is contained in:
Alexander Udalov
2019-03-07 13:31:10 +01:00
parent 76aff56b04
commit f9be21c935
8 changed files with 62 additions and 1 deletions
@@ -2736,6 +2736,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
public void testInlineOnlySuppressesNothingToInline() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/inlineOnlySuppressesNothingToInline.kt");
}
@TestMetadata("synchronizedOnInline.kt")
public void testSynchronizedOnInline() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnInline.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/java")
@@ -2736,6 +2736,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
public void testInlineOnlySuppressesNothingToInline() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/inlineOnlySuppressesNothingToInline.kt");
}
@TestMetadata("synchronizedOnInline.kt")
public void testSynchronizedOnInline() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/inline/synchronizedOnInline.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/java")