[FIR] Ensure NO_COMPANION_OBJECT is reported for typealiases
^KT-55733 Fixed ^KT-55186 Fixed
This commit is contained in:
committed by
Space Team
parent
609f417a13
commit
0e1350f464
@@ -0,0 +1,7 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun main() {
|
||||
val appendable = <!NO_COMPANION_OBJECT!>Appendable<!>
|
||||
val stringBuilder = <!NO_COMPANION_OBJECT!>StringBuilder<!>
|
||||
val exception = <!NO_COMPANION_OBJECT!>IllegalStateException<!>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public fun main(): kotlin.Unit
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
// +JDK
|
||||
|
||||
typealias Exn = java.lang.Exception
|
||||
|
||||
fun test() {
|
||||
throw Exn
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// +JDK
|
||||
|
||||
typealias Exn = java.lang.Exception
|
||||
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
interface IFoo
|
||||
|
||||
typealias Test = IFoo
|
||||
|
||||
val testAsFunction = <!RESOLUTION_TO_CLASSIFIER!>Test<!>()
|
||||
val testAsValue = Test
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
interface IFoo
|
||||
|
||||
typealias Test = IFoo
|
||||
|
||||
Reference in New Issue
Block a user