Skip to content

Commit

Permalink
Ignore associated type declarations during conformance lowering
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Oct 6, 2023
1 parent 1dd5bb1 commit d6c2033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IR/Module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public struct Module {
/// Returns the lowered form of `c`.
private mutating func loweredConformance(_ c: Core.Conformance) -> IR.Conformance {
var implementations = IR.Conformance.ImplementationMap()
for (r, i) in c.implementations {
for (r, i) in c.implementations where (r.kind != AssociatedTypeDecl.self) {
let f = demandDeclaration(lowering: i)!
implementations[r] = .function(FunctionReference(to: f, in: self))
}
Expand Down

0 comments on commit d6c2033

Please sign in to comment.