KT-1041 Add check that thrown/catched expression is of Throwable type
This commit is contained in:
@@ -23,6 +23,6 @@ public object SomeClass {
|
||||
|
||||
public fun box():String {
|
||||
if(SomeClass.bug is Throwable)
|
||||
throw SomeClass.bug
|
||||
throw SomeClass.bug as Throwable
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user