[Issue 20881] [DIP1000] Templates seem to ignore 'return' (workaround)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 3 15:27:16 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20881

--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
Can we actually return a problematic pointer this way? As it is, the test case
only returns `null`s.

It seems that without attribute inference, DMD assumes `get` might return a
problematic pointer. But with attribute inference, DMD looks at the actual
expression that is being returned.

--


More information about the Digitalmars-d-bugs mailing list