4 fail_compilation/var_func_attr.d(19): Error: cannot implicitly convert expression `__lambda8` of type `void function() nothrow @nogc @safe` to `void function() pure`
8 // Test the effect of function attributes on variables
10 // https://issues.dlang.org/show_bug.cgi?id=7432
11 // https://github.com/dlang/dmd/pull/14199
12 // Usually it's a no-op, but the attribute can apply to the function/delegate type of the variable
13 // The current behavior is weird, so this is a test of the current behavior, not necessarily the desired behavior
18 // Applies to function type (existing code in dmd and Phobos relies on this)
19 pure void function() pf
= () {
24 // Function attributes currently don't apply to inferred types (somewhat surprisingly)
26 throw new Exception("");
29 // Neither do they apply to indirections
30 alias F
= void function();