Skip to content

Commit

Permalink
Now, template function attributes are inferred in module level scope,…
Browse files Browse the repository at this point in the history
… then unsafe calling is blocked.
  • Loading branch information
9rnsr committed Nov 3, 2012
1 parent a8cae62 commit 3c68329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runnable/template4.d
Expand Up @@ -1030,7 +1030,7 @@ struct T7589(T)
static assert(!__traits(compiles, T7589!(int)));

int bug7589b(T)() @safe { int *p; *(p + 8) = 6; }
static assert(__traits(compiles, bug7589b!(int)()+7 ));
static assert(!__traits(compiles, bug7589b!(int)()+7 ));


/*********************************************************/
Expand Down

0 comments on commit 3c68329

Please sign in to comment.