Skip to content

Commit

Permalink
Update Source/DafnyCore/Backends/Dafny/DafnyCodeGenerator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored Jan 15, 2025
1 parent 5e7d312 commit c8b1739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DafnyCore/Backends/Dafny/DafnyCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ protected override IClassWriter CreateTrait(string name, bool isExtern, List<Typ
? DAST.TraitType.create_ObjectTrait()
: TraitType.create_GeneralTrait();
var downcastableTraits = DowncastableTraitsTypes(trait);
var downcastableTratitTypes = downcastableTraits.Select(GenType).ToList();
return new ClassWriter(this, typeParameters.Any(), builder.Trait(name, typeParams, parents, ParseAttributes(trait.Attributes), GetDocString(trait), traitType, downcastableTratitTypes));
var downcastableTraitTypes = downcastableTraits.Select(GenType).ToList();
return new ClassWriter(this, typeParameters.Any(), builder.Trait(name, typeParams, parents, ParseAttributes(trait.Attributes), GetDocString(trait), traitType, downcastableTraitTypes));
} else {
throw new InvalidOperationException();
}
Expand Down

0 comments on commit c8b1739

Please sign in to comment.