[FIR] Don't miss diagnostics on resovled reified type parameters
^KT-66005 Fixed
This commit is contained in:
committed by
Space Team
parent
b0e6db7807
commit
f1c7f929d2
@@ -375,7 +375,7 @@ class FirCallResolver(
|
|||||||
annotations = qualifiedAccess.annotations
|
annotations = qualifiedAccess.annotations
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
referencedSymbol is FirTypeParameterSymbol && referencedSymbol.fir.isReified -> {
|
referencedSymbol is FirTypeParameterSymbol && referencedSymbol.fir.isReified && diagnostic == null -> {
|
||||||
return buildResolvedReifiedParameterReference {
|
return buildResolvedReifiedParameterReference {
|
||||||
source = nameReference.source
|
source = nameReference.source
|
||||||
symbol = referencedSymbol
|
symbol = referencedSymbol
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// ISSUE: KT-66005
|
// ISSUE: KT-66005
|
||||||
|
|
||||||
inline fun <reified T> foo(v: T) {
|
inline fun <reified T> foo(v: T) {
|
||||||
T == Int
|
<!TYPE_PARAMETER_IS_NOT_AN_EXPRESSION!>T<!> == Int
|
||||||
// This is a comparison of companion objects
|
// This is a comparison of companion objects
|
||||||
Int == Int
|
Int == Int
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user