[Issue 20602] [REG2.086] ICE on wrong code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 4 15:02:35 UTC 2020


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
The assertion looks irrelevant as the function it's located in is for the
parameters. 

It seems that remiving the assertion and returning early if tf.next is null and
that fd.inferReturnType is false works. Those two conditions mean that like in
your test case the return type is not valid and an error is already emitted for
that.

--


More information about the Digitalmars-d-bugs mailing list