Add -Xsanitize-parentheses to workaround ASM 6.1 issue in frame computation

#KT-29475 Fixed
This commit is contained in:
Alexander Udalov
2019-01-30 14:27:56 +01:00
parent dfb379d999
commit db487a622a
17 changed files with 163 additions and 3 deletions
@@ -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\)