[FIR] Ensure NO_COMPANION_OBJECT is reported for typealiases

^KT-55733 Fixed
^KT-55186 Fixed
This commit is contained in:
Nikolay Lunyak
2023-01-12 11:34:24 +02:00
committed by Space Team
parent 609f417a13
commit 0e1350f464
11 changed files with 51 additions and 17 deletions
+7
View File
@@ -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<!>
}
+4
View File
@@ -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
@@ -1,6 +0,0 @@
interface IFoo
typealias Test = IFoo
val testAsFunction = <!RESOLUTION_TO_CLASSIFIER!>Test<!>()
val testAsValue = Test
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface IFoo
typealias Test = IFoo