[Issue 15379] "final" attribute on function parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 24 12:38:05 UTC 2022


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@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

--


More information about the Digitalmars-d-bugs mailing list