From 34b312b45e891fcb3ce525e0b964009559d1b7de Mon Sep 17 00:00:00 2001 From: Matthew Brennan Jones Date: Thu, 29 May 2014 16:14:52 -0700 Subject: [PATCH] Fixed issue where warnings on line zero would break unit tests. --- analysis/helpers.d | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/analysis/helpers.d b/analysis/helpers.d index ae081c2..6c22aea 100644 --- a/analysis/helpers.d +++ b/analysis/helpers.d @@ -7,6 +7,8 @@ module analysis.helpers; import std.string; import std.traits; +import std.stdio; + import std.d.ast; import analysis.run; @@ -58,7 +60,15 @@ void assertAnalyzerWarnings(string code, analysis.run.AnalyzerCheck analyzers, s string[size_t] warnings; for (size_t i=0; i