http://d.puremagic.com/issues/show_bug.cgi?id=3802
Summary: Error message without line number when using struct
initializers for a struct with constructors.
Product: D
Version: 2.040
Platform: Other
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from S�nke Ludwig <[email protected]> 2010-02-14
07:49:21 PST ---
Using the struct initializer syntax which is now forbidden for structs with
constructors results in an error message without line number information.
---
struct test {
int f;
this(int x){
f = x;
}
}
immutable test t2 = {1};
---
output:
Error: struct test has constructors, cannot use { initializers }, use test(
initializers ) instead
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------