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:
+5
@@ -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")
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user