Skip to content

Commit

Permalink
compiler // fixed missing include statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjrawlings committed Jul 12, 2024
1 parent 3859438 commit 0919f8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MiniZinc.Compiler/BaseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ public string Write(WriteOptions? options = null)
{
var writer = new Writer(options);

if (_includes is { } includes)
foreach (var include in includes)
writer.WriteSyntax(include);

foreach (var syntax in _namespace.Values)
writer.WriteSyntax((SyntaxNode)syntax);

Expand Down

0 comments on commit 0919f8f

Please sign in to comment.