Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 23, 2016 [Issue 15592] Template specializations don't work in nested scope | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15592 Ivan Kazmenko <gassa@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gassa@mail.ru -- |
December 25, 2017 [Issue 15592] Template specializations don't work in nested scope | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15592 Bastiaan Veelo <Bastiaan@Veelo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Bastiaan@Veelo.net -- |
December 17, 2022 [Issue 15592] Template specializations don't work in nested scope | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15592 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
June 27, 2023 [Issue 15592] Template specializations don't work in nested scope | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15592 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |WONTFIX --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- Specializations have nothing to do with this. The spec clearly states that nested functions cannot be overloaded (point 3 of [1]). This codes compiles: ``` void main(){ void foo(T : int)() { } struct S(T : int) { } } ``` It has been argued in the past that this limitation should be lifted, however, Walter opposes it (I don't remember the reason). So closing this as WONTFIX. [1] https://dlang.org/spec/function.html#nested-declaration-order -- |
Copyright © 1999-2021 by the D Language Foundation