If I define noreturn as typeof(*null) in the current file or in an included object.d file (using my own custom runtime), then dscanner starts generating warnings that the noreturn value is being discarded.
alias noreturn = typeof(*null);
noreturn foo() {
while (1) {}
}
noreturn bar() {
foo(); // warning: function value is discarded
}
If noreturn is not declared locally then it works as expected.
If I define
noreturn
astypeof(*null)
in the current file or in an includedobject.d
file (using my own custom runtime), then dscanner starts generating warnings that thenoreturn
value is being discarded.If
noreturn
is not declared locally then it works as expected.