[Issue 1248] New: Weird error "... of type TOK146" on recursive type definition
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 26 07:38:03 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1248
Summary: Weird error "... of type TOK146" on recursive type
definition
Product: D
Version: 1.014
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: brunodomedeiros+bugz at gmail.com
This code:
----- ----
void func(functype param) {
param(null);
}
alias typeof(&func) functype;
----
breaks with:
"main.d(3): Error: function expected before (), not param of type TOK14"
I'm not sure if the code above is valid or not, but at least the error message
is broken.
--
More information about the Digitalmars-d-bugs
mailing list