[FIR] Let attributes opt-in to participating in ConeClassLikeTypeImpl structural equality

This is required for EnhancedTypeForWarningAttribute because scopes
should not be reused between cone types with different values of
this attribute.

#KT-63208
This commit is contained in:
Kirill Rakhman
2024-01-05 15:10:28 +01:00
committed by Space Team
parent 931cc48def
commit 9189154cae
11 changed files with 58 additions and 92 deletions
@@ -141,7 +141,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
BODY_RESOLVE:
TARGET: public open override [<synthetic> BODY_RESOLVE] val something: R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String|
@R|Anno|[Types](s = <strcat>(String(number: ), R|/prop|)) public [<synthetic> ResolvedTo(BODY_RESOLVE)] get(): R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String| {
^getSomething String(str).R|kotlin/also|<R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String|>(::R|kotlin/io/println|)
^getSomething String(str).R|kotlin/also|<R|kotlin/String|>(::R|kotlin/io/println|)
}
FILE: [ResolvedTo(IMPORTS)] Derived.kt
@@ -151,7 +151,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
}
@R|Anno|[Types](s = <strcat>(String(number: ), R|/prop|)) public open override [ResolvedTo(BODY_RESOLVE)] fun getSomething(): R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String| {
^getSomething String(str).R|kotlin/also|<R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String|>(::R|kotlin/io/println|)
^getSomething String(str).R|kotlin/also|<R|kotlin/String|>(::R|kotlin/io/println|)
}
}
@@ -178,7 +178,7 @@ FILE: [ResolvedTo(BODY_RESOLVE)] Derived.kt
}
@R|Anno|[Types](s = <strcat>(String(number: ), R|/prop|)) public open override [ResolvedTo(BODY_RESOLVE)] fun getSomething(): R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String| {
^getSomething String(str).R|kotlin/also|<R|@R|Anno|(s = <strcat>(String(type: ), R|/prop|)) kotlin/String|>(::R|kotlin/io/println|)
^getSomething String(str).R|kotlin/also|<R|kotlin/String|>(::R|kotlin/io/println|)
}
}