[Issue 3802] New: Error message without line number when using struct initializers for a struct with constructors.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 14 07:49:21 PST 2010
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: nobody at puremagic.com
ReportedBy: ludwig at informatik.uni-luebeck.de
--- Comment #0 from Sönke Ludwig <ludwig at informatik.uni-luebeck.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list