[Issue 15978] Can't pass vector type .init property as template parameter
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Sep  2 11:20:57 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15978
Nick Treleaven <nick at geany.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Can't pass array or vector  |Can't pass vector type
                   |.init as template parameter |.init property as template
                   |                            |parameter
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
> alias a = MyTemplate!(int[].init); // NG
That one works as of 2.102.2.
> alias a = MyTemplate!(int[4].init); // NG
That one is still a parse error, but I filed it separately as issue 24740 as it
applies to other contexts too.
--
    
    
More information about the Digitalmars-d-bugs
mailing list