Common supertypes: unwrap captured type from DNN type during recursion control
This commit handles subtle situation when K1 represents flexible type arguments as just T..T?, but K2 does it as T&Any..T?. This can provoke a type like Captured(*)&Any..Captured(*)?, and before this commit we couldn't find recursion inside Captured(*)&Any. This could lead to explosions inside type system and inference errors #KT-60581 Fixed
This commit is contained in:
committed by
Space Team
parent
610a9d9c6a
commit
aea7b8f00a
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-60581
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user