FIR: Fix INFERENCE_NO_INFORMATION_FOR_PARAMETER on type alias with generic expansion

^KT-46996 Fixed
This commit is contained in:
Denis.Zharkov
2021-05-27 18:41:36 +03:00
committed by TeamCityServer
parent d76db0e011
commit 5ade831665
10 changed files with 12 additions and 21 deletions
@@ -13,5 +13,5 @@ class Cell<T : Any?> {
}
fun test(): Cell<Int> {
return Cell<Any?>(value = 42)
return Cell</* null */>(value = 42)
}
@@ -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
@@ -1,6 +1,3 @@
// IGNORE_BACKEND_FIR: ANY
// See KT-46996
class Cell<T>(val value: T)
typealias IntAlias = Cell<Int>