Raise deprecation of js synchronized {} to error

This commit is contained in:
Ilya Gorbunov
2023-04-25 23:30:06 +02:00
committed by Space Team
parent 2248f4ea33
commit f260b55810
7 changed files with 9 additions and 3 deletions
+1
View File
@@ -12,5 +12,6 @@ fun box(): String {
class A {
companion object;
operator fun String.invoke() = Unit
@Suppress("DEPRECATION_ERROR")
fun close() = synchronized(this) { "abc" }()
}