Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-aws committed Jan 7, 2025
1 parent c217fb5 commit 8b8382d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DafnyCore/Backends/CSharp/CsharpCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected override ConcreteSyntaxTree CreateStaticMain(IClassWriter cw, string a
/// Compute the name of the class to use to translate a data-type
/// </summary>
private string dataTypeName(DatatypeDecl dt) {
var protectedName = IdProtect(dt.Name);
var protectedName = IdName(dt);
if (dt.EnclosingModuleDefinition is not null) {
var moduleName = IdProtectModule(dt.EnclosingModuleDefinition.Name);
if (moduleName == protectedName) {
Expand Down

0 comments on commit 8b8382d

Please sign in to comment.