[Issue 12277] New: static opCall is hidden by @disabled constructors and can never be called
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 28 04:59:13 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12277
Summary: static opCall is hidden by @disabled constructors and
can never be called
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: remotion4d at gmail.com
--- Comment #0 from Remo <remotion4d at gmail.com> 2014-02-28 04:59:12 PST ---
struct S
{
@disable this();
@disable this(this);
this(int i){ }
static S opCall(){
S s = S(123);
return s;
}
}
This fails to compile with "static opCall is hidden by constructors and can
never be called".
But the default ctor is disabled.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list