digitalmars.D.learn - Cannot use auto return while using class invariants
- simendsjo (9/9) Oct 21 2011 Is this a temporary restriction?
- Jonathan M Davis (2/13) Oct 21 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5039
- simendsjo (2/15) Oct 21 2011 Thanks. Doesn't look like it will be fixed for a while.
Is this a temporary restriction? class C { invariant() { } auto f() { return 1; } } Error: function C.f post conditions are not supported if the return type is inferred
Oct 21 2011
On Friday, October 21, 2011 16:51 simendsjo wrote:Is this a temporary restriction? class C { invariant() { } auto f() { return 1; } } Error: function C.f post conditions are not supported if the return type is inferredhttp://d.puremagic.com/issues/show_bug.cgi?id=5039
Oct 21 2011
On 22.10.2011 02:06, Jonathan M Davis wrote:On Friday, October 21, 2011 16:51 simendsjo wrote:Thanks. Doesn't look like it will be fixed for a while.Is this a temporary restriction? class C { invariant() { } auto f() { return 1; } } Error: function C.f post conditions are not supported if the return type is inferredhttp://d.puremagic.com/issues/show_bug.cgi?id=5039
Oct 21 2011