Skip to content

Commit

Permalink
TypeChecker
Browse files Browse the repository at this point in the history
- Use `getName()` on the `Variable` when printing out the names of unused variables
  • Loading branch information
deavmi committed Nov 5, 2023
1 parent eee9735 commit b29be46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/tlang/compiler/typecheck/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ public final class TypeChecker
{
foreach(Variable unusedVariable; unusedVariables)
{
gprintln("Variable '"~to!(string)(unusedVariable)~"' is declared but never");
// TODO: Get a nicer name, full path-based
gprintln("Variable '"~to!(string)(unusedVariable.getName())~"' is declared but never");
}
}
}
Expand Down

0 comments on commit b29be46

Please sign in to comment.