Skip to content

Commit

Permalink
fix orphan format things
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed May 2, 2024
1 parent fc87a81 commit 67e843a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/backends/linux86.d
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,10 @@ class BackendLinux86 : CompilerBackend {

override void CompileAlias(AliasNode node) {
if (node.from !in types) {
Error(node.error, "Type '%s' doesn't exist");
Error(node.error, "Type '%s' doesn't exist", node.from);
}
if ((node.to in types) && !node.overwrite) {
Error(node.error, "Type '%s' already defined");
Error(node.error, "Type '%s' already defined", node.to);
}

types[node.to] = types[node.from];
Expand Down
4 changes: 2 additions & 2 deletions source/backends/rm86.d
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,10 @@ class BackendRM86 : CompilerBackend {

override void CompileAlias(AliasNode node) {
if (node.from !in types) {
Error(node.error, "Type '%s' doesn't exist");
Error(node.error, "Type '%s' doesn't exist", node.from);
}
if ((node.to in types) && !node.overwrite) {
Error(node.error, "Type '%s' already defined");
Error(node.error, "Type '%s' already defined", node.to);
}

types[node.to] = types[node.from];
Expand Down

0 comments on commit 67e843a

Please sign in to comment.