KT-13422 Type alias for Java exception class can be used as an object in 'throw' expression
Report NO_COMPANION_OBJECT for type aliases.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// +JDK
|
||||
|
||||
typealias Exn = java.lang.Exception
|
||||
|
||||
fun test() {
|
||||
throw <!NO_COMPANION_OBJECT!>Exn<!>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public typealias Exn = java.lang.Exception
|
||||
public fun test(): kotlin.Unit
|
||||
Reference in New Issue
Block a user