[JS IR] Add infra to test compilation with error
- add bunch of tests - fix help test
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// ERROR_POLICY: SYNTAX
|
||||
|
||||
// FILE: t.kt
|
||||
|
||||
1sdasf
|
||||
|
||||
fun bar() {}
|
||||
|
||||
fun foo() { bar(,,,,,,,) }
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
foo()
|
||||
} catch (e: IllegalStateException) {
|
||||
return "OK"
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
Reference in New Issue
Block a user