[JS BEs] Generate tests for whole "codegen/boxInline"

This commit is contained in:
Zalim Bashorov
2020-03-10 21:59:46 +03:00
parent fe3a81ebc9
commit 179ec41a6b
71 changed files with 7721 additions and 4213 deletions
@@ -34,22 +34,10 @@ fun box(): String {
return "OK"
}
inline fun failTypeCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
}
}
inline fun failClassCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
throw e
}
catch (e: ClassCastException) {
}