[Issue 9420] New: [2.062alpha] Weird "(null)" output in error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 28 23:08:17 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9420
Summary: [2.062alpha] Weird "(null)" output in error message
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-01-28 23:08:16 PST ---
This code prints weird error message.
code:
----
mixin template Mixin() { }
struct S
{
template t3(T...)
{
void tx(T){}
alias t3 = tx; // no fwdref error...
}
}
void main()
{
S s1;
s1.t3!()(1); // line 14
}
output:
----
test.d(14): Error: function test.S.t3!().tx ()(null) is not callable using
argument types (int)
test.d(14): Error: expected 0 arguments, not 1 for non-variadic function type
pure nothrow @safe void()
`test.S.t3!().tx ()(null)` is incorrect.
This is introduced by:
https://github.com/D-Programming-Language/dmd/commit/c210663497a46e6cb2b805332d7de69ada23480e
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list