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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <[email protected]> ---
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

--

Reply via email to