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:
Mikhail Glukhikh
2023-09-21 14:22:49 +02:00
committed by Space Team
parent 610a9d9c6a
commit aea7b8f00a
5 changed files with 4 additions and 92 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// ISSUE: KT-60581
// WITH_STDLIB