1 //https://issues.dlang.org/show_bug.cgi?id=19203
9 int popBack() { return 0; }
14 template hasPopBack(T
) {
15 static if (!is(typeof(T
.init
.popBack
)))
16 enum hasPopBack
= BoolWithErr(false, T
.stringof
~" does not have popBack");
18 enum hasPopBack
= BoolWithErr(true,"");
23 static assert( hasPopBack
!Foo
);
24 static assert(!hasPopBack
!Bar
);
25 static assert( hasPopBack
!Foo
&& !hasPopBack
!Bar
);