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

Dlang Bot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <[email protected]> ---
@ntrel created dlang/dlang.org pull request #3354 "Fix Issue 15379 - "final"
attribute on function parameter" fixing this issue:

- Fix Issue 15379 - "final" attribute on function parameter

  `final` is not allowed in D2.
  ```d
  void foo(final int a){} // error!
  ```
  ```
  finalpar.d(1): Error: variable `finalpar.foo.a` cannot be `final`, perhaps
you meant `const`?
  ```

https://github.com/dlang/dlang.org/pull/3354

--
  • [Issue 15379] "final" attrib... d-bugmail--- via Digitalmars-d-bugs

Reply via email to