On Tuesday, 3 December 2019 at 07:24:31 UTC, Basile B. wrote:
A testA() {return alwaysReturnNull(); // Tnull can be implictly converted to A} still nice tho.
Why not [1]? [1] typeof(null) alwaysReturnNull() { ... } Andrea
Andrea Fontana via Digitalmars-d-learn Tue, 03 Dec 2019 00:50:42 -0800
On Tuesday, 3 December 2019 at 07:24:31 UTC, Basile B. wrote:
A testA() {return alwaysReturnNull(); // Tnull can be implictly converted to A} still nice tho.
Why not [1]? [1] typeof(null) alwaysReturnNull() { ... } Andrea