[Issue 20786] do attribute inference for all nested functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue May  5 02:30:07 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20786
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Shouldn't that work though?
This compiles just fine:
void x(void function() foo) { foo(); }
void bar() @nogc pure nothrow @safe {}
void main()
{
    x(&bar);
}
I guess a good counter case would be helpful here.
--
    
    
More information about the Digitalmars-d-bugs
mailing list