method has no return statement with switch

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 6 16:27:00 PST 2015


On Saturday, 7 November 2015 at 00:21:57 UTC, crimaniak wrote:
> Inserting dummy return statement doesn't help. final switch / 
> switch with default - no matter.


Try inserting assert(0); instead of a dummy return.


More information about the Digitalmars-d-learn mailing list