Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
box
/
exceptions
/
throw0.kt
blob: 4368db6afbefb60d5a95ba462da92ef4273d7348 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
fun box
():
String
{
val cond
=
1
if
(
cond
==
2
)
throw
RuntimeException
()
if
(
cond
==
3
)
throw
NoSuchElementException
(
"no such element"
)
if
(
cond
==
4
)
throw
Error
(
"error happens"
)
return
"OK"
}