dmd/compiler/test/compilable/test17059.d
2022-07-09 18:53:07 +02:00

11 lines
166 B
D

mixin template impl()
{
alias T = typeof(this);
enum doImplement = is(T : I);
static if (doImplement)
{}
}
interface I {}
class A : I {mixin impl;}