Skip to content

Commit

Permalink
Don't print context errors if mixins are flushed to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Dec 19, 2018
1 parent 4787d4b commit fc14e78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dmd/errors.d
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ private void verrorPrint(const ref Loc loc, Color headerColor, const(char)* head
// ignore invalid files
loc != Loc.initial &&
// ignore mixins for now
!loc.filename.strstr(".d-mixin-"))
!loc.filename.strstr(".d-mixin-") &&
!global.params.mixinOut)
{
import dmd.filecache : FileCache;
auto fllines = FileCache.fileCache.addOrGetFile(loc.filename[0 .. strlen(loc.filename)]);
Expand Down

0 comments on commit fc14e78

Please sign in to comment.