[FIR] Report UNRESOLVED_REFERENCE on the first unresolved qualifier
#KT-55471 Fixed
This commit is contained in:
committed by
Space Team
parent
40fadac060
commit
10f7989af6
+1
-1
@@ -2,7 +2,7 @@
|
||||
interface Inv
|
||||
class Impl : Inv
|
||||
|
||||
class Scope<InterfaceT, ImplementationT : InterfaceT>(private val implClass: <!UNRESOLVED_REFERENCE!>j.Class<ImplementationT><!>) {
|
||||
class Scope<InterfaceT, ImplementationT : InterfaceT>(private val implClass: <!UNRESOLVED_REFERENCE!>j<!>.Class<ImplementationT>) {
|
||||
fun foo(c: Collection<InterfaceT>) {
|
||||
val hm = c.asSequence()
|
||||
.filter(implClass::<!UNRESOLVED_REFERENCE!>isInstance<!>)
|
||||
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// FILE: 1.kt
|
||||
fun test(c: <!UNRESOLVED_REFERENCE!>Continuation<Unit><!>) {}
|
||||
|
||||
// FILE: 2.kt
|
||||
import kotlin.coroutines.*
|
||||
|
||||
fun test2(c: Continuation<Unit>) {}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: 1.kt
|
||||
fun test(c: <!UNRESOLVED_REFERENCE!>Continuation<!><Unit>) {}
|
||||
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// !LANGUAGE: +Coroutines
|
||||
// !DIAGNOSTICS: -USELESS_IS_CHECK
|
||||
// SKIP_TXT
|
||||
|
||||
fun test() {
|
||||
suspend {} is <!UNRESOLVED_REFERENCE!>SuspendFunction0<*><!>
|
||||
suspend {} is kotlin.coroutines.SuspendFunction0<*>
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +Coroutines
|
||||
// !DIAGNOSTICS: -USELESS_IS_CHECK
|
||||
// SKIP_TXT
|
||||
|
||||
compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctionType/suspendFunctionN.fir.kt
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// SKIP_JAVAC
|
||||
typealias Test1 = <!UNRESOLVED_REFERENCE!>SuspendFunction0<Unit><!>
|
||||
typealias Test2 = <!UNRESOLVED_REFERENCE!>kotlin.SuspendFunction0<Unit><!>
|
||||
typealias Test1 = <!UNRESOLVED_REFERENCE!>SuspendFunction0<!><Unit>
|
||||
typealias Test2 = <!UNRESOLVED_REFERENCE!>kotlin<!>.SuspendFunction0<Unit>
|
||||
typealias Test3 = kotlin.coroutines.SuspendFunction0<Unit>
|
||||
|
||||
Reference in New Issue
Block a user