Skip to content

Commit

Permalink
Try to fix associated types messing up types unification (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmuecke authored Oct 29, 2024
1 parent 1cf225f commit ae93315
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ internal struct ParserResultsComposed {

/// Map associated types
associatedTypes.forEach {
typeMap[$0.key] = $0.value.type
if let globalName = $0.value.type?.globalName,
let type = typeMap[globalName] {
typeMap[$0.key] = type
} else {
typeMap[$0.key] = $0.value.type
}
}

types = unifyTypes()
Expand Down

0 comments on commit ae93315

Please sign in to comment.