FIR: Fix INFERENCE_NO_INFORMATION_FOR_PARAMETER on type alias with generic expansion
^KT-46996 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
d76db0e011
commit
5ade831665
+1
-1
@@ -13,5 +13,5 @@ class Cell<T : Any?> {
|
||||
}
|
||||
|
||||
fun test(): Cell<Int> {
|
||||
return Cell<Any?>(value = 42)
|
||||
return Cell</* null */>(value = 42)
|
||||
}
|
||||
|
||||
+1
-1
@@ -36,5 +36,5 @@ FILE fqName:<root> fileName:/specializedTypeAliasConstructorCall.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): <root>.Cell<kotlin.Int> declared in <root>'
|
||||
CONSTRUCTOR_CALL 'public constructor <init> (value: T of <root>.Cell) [primary] declared in <root>.Cell' type=<root>.Cell<kotlin.Int> origin=null
|
||||
<class: T>: kotlin.Any?
|
||||
<class: T>: <none>
|
||||
value: CONST Int type=kotlin.Int value=42
|
||||
|
||||
-3
@@ -1,6 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: ANY
|
||||
// See KT-46996
|
||||
|
||||
class Cell<T>(val value: T)
|
||||
|
||||
typealias IntAlias = Cell<Int>
|
||||
|
||||
Reference in New Issue
Block a user