https://issues.dlang.org/show_bug.cgi?id=20595
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Nick Treleaven <[email protected]> --- You can already do this with an OutStatement with a static assert: auto f() out (r) { static assert(is(typeof(r) : int)); } do { return ""; } Compiling this you get an error, and the out contract should/could be shown in the docs (haven't checked). --
