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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Remo <[email protected]> 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: -------