diff --git a/src/dscanner/analysis/unused_result.d b/src/dscanner/analysis/unused_result.d index 85f34a4..3977e15 100644 --- a/src/dscanner/analysis/unused_result.d +++ b/src/dscanner/analysis/unused_result.d @@ -132,6 +132,21 @@ unittest } }c.format(UnusedResultChecker.MSG), sac); + assertAnalyzerWarnings(q{ + struct Foo + { + static bool get() + { + return false; + } + } + alias Bar = Foo; + void main() + { + Bar.get(); // [warn]: %s + } + }c.format(UnusedResultChecker.MSG), sac); + assertAnalyzerWarnings(q{ void main() {