[Issue 24032] Compiler is parsing string parameters to Templates
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jul  6 12:41:40 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24032
--- Comment #4 from Puneet Goel <puneet at coverify.org> ---
Even if we have to do token parsing for q{}, the following code should not
fail.
class Foo(string str) {}
void main() {
  Foo!q{string str = "0X"} foo;
  Foo!q{string str = "0B"} bar;
}
The compiler gives the same errors as it gives for q{0B} and q{0X}.
--
    
    
More information about the Digitalmars-d-bugs
mailing list