Add -Xsanitize-parentheses to workaround ASM 6.1 issue in frame computation
#KT-29475 Fixed
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// !SANITIZE_PARENTHESES
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
class `(X)` {
|
||||
fun `(Y)`(): String {
|
||||
fun foo(): String {
|
||||
return bar { baz() }
|
||||
}
|
||||
return foo()
|
||||
}
|
||||
|
||||
fun baz() = "OK"
|
||||
}
|
||||
|
||||
fun bar(p: () -> String) = p()
|
||||
|
||||
fun box(): String {
|
||||
return `(X)`().`(Y)`()
|
||||
}
|
||||
|
||||
// One instance of each is in kotlin.Metadata.d2
|
||||
// 1 \(X\)
|
||||
// 1 \(Y\)
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
class `(X)` {
|
||||
fun `(Y)`() {}
|
||||
}
|
||||
|
||||
// One in the file name, one in the class header, two in local variables in the constructor and the method, and one in kotlin.Metadata.d2
|
||||
// 5 \(X\)
|
||||
|
||||
// One in the method header and one in kotlin.Metadata.d2
|
||||
// 2 \(Y\)
|
||||
Reference in New Issue
Block a user