[FIR] do not copy annotations during type propagation
We should share the original instance to be able to later resolve it in the original context. This commit returns the KT-60387 problem, but the root cause (concurrent modification) will be fixed in the context of KT-63042 ^KT-63042
This commit is contained in:
committed by
Space Team
parent
69559689fd
commit
264a151676
Vendored
+3
-2
@@ -282,8 +282,8 @@ FILE: [ResolvedTo(IMPORTS)] anonymousFunctionWithAnnotatedParameterScript.kts
|
||||
|
||||
}
|
||||
|
||||
public final [ResolvedTo(CONTRACTS)] val nullablePropertyWithAnnotatedType: R|@R|Anno|(String(outer)) kotlin/collections/List<@R|Anno|(String(middle)) kotlin/collections/List<@R|Anno|(String(inner)) kotlin/Int>>?|
|
||||
public [ResolvedTo(CONTRACTS)] get(): R|@R|Anno|(String(outer)) kotlin/collections/List<@R|Anno|(String(middle)) kotlin/collections/List<@R|Anno|(String(inner)) kotlin/Int>>?| {
|
||||
public final [ResolvedTo(CONTRACTS)] val nullablePropertyWithAnnotatedType: R|@R|Anno|(message = String(outer)) kotlin/collections/List<@R|Anno|(message = String(middle)) kotlin/collections/List<@R|Anno|(message = String(inner)) kotlin/Int>>?|
|
||||
public [ResolvedTo(CONTRACTS)] get(): R|@R|Anno|(message = String(outer)) kotlin/collections/List<@R|Anno|(message = String(middle)) kotlin/collections/List<@R|Anno|(message = String(inner)) kotlin/Int>>?| {
|
||||
^ Null(null)
|
||||
}
|
||||
|
||||
@@ -324,3 +324,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] anonymousFunctionWithAnnotatedParameterScript.k
|
||||
}
|
||||
) } ?: String()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user