blob: f55e370dc15264767715183b318bdc2b4069d8b1 [file]
// Test
// WITH_STDLIB
// LIBRARY_PLATFORMS: JVM
abstract class Base
class MyException : Exception()
class Test
@Throws(MyException::class)
constructor(
private val p1: Int
) : Base() {
@Throws(MyException::class)
fun readSomething() {
throw MyException()
}
@get:Throws(MyException::class)
val foo : String = "42"
val boo : String = "42"
@Throws(MyException::class)
get
}