https://issues.dlang.org/show_bug.cgi?id=20211
--- Comment #2 from KnightMare <blac...@bk.ru> --- (In reply to anonymous4 from comment #1) > > Try this: > > template A() { > int[] f(scope int[] a) @safe { return a; } > } > static assert(!__traits(compiles,A!())); thank you. current workaround: template isDip1000EnabledImpl() { private template A() { int[] f( scope int[] a) @safe { return a; } } public enum isDip1000EnabledImpl = !__traits( compiles, A!()); } alias isDip1000Enabled = isDip1000EnabledImpl!(); --