Deprecate throws annotation in favor of Throws
This commit is contained in:
@@ -2,10 +2,10 @@ package test
|
||||
|
||||
class E1: Exception()
|
||||
|
||||
throws(E1::class) jvmOverloads
|
||||
Throws(E1::class) jvmOverloads
|
||||
fun one(a: Int = 1) {}
|
||||
|
||||
class One @throws(E1::class) constructor(a: Int = 1) {
|
||||
throws(E1::class)
|
||||
class One @Throws(E1::class) constructor(a: Int = 1) {
|
||||
@Throws(E1::class)
|
||||
fun one(a: Int = 1) {}
|
||||
}
|
||||
Reference in New Issue
Block a user