[Issue 17366] Inferrence results in a missing error for final

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 3 05:53:36 PDT 2017


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
No, it isn't a template. Try putting `import external.module;` inside. If it is
a template, there's no "cannot find module" error unless you actually call it
(lazy local imports), but for a function, the error does exist.

final foo() { import...} DOES produce the error. Ditto for `auto ref`
parameters, they aren't allowed here either.

--


More information about the Digitalmars-d-bugs mailing list