[IR][tests] Removal of class used as variable type and constructor call
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun box(): String {
|
||||
try {
|
||||
bar()
|
||||
return "FAIL1"
|
||||
} catch (e: Throwable) {
|
||||
if (!e.isLinkageError("/Foo.<init>")) return "FAIL2"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
private fun Throwable.isLinkageError(symbolName: String): Boolean =
|
||||
this::class.simpleName == "IrLinkageError" && message?.startsWith("Unlinked IR symbol $symbolName|") == true
|
||||
Reference in New Issue
Block a user