https://issues.dlang.org/show_bug.cgi?id=13787
Issue ID: 13787
Summary: Error without line number when slicing function
pointer
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Compiling:
void main()
{
void[] p = (&main)[0..1];
}
just yields errors without line numbers
Error: no size for type void()
Error: no size for type void()
--
