ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gdc.test/runnable/test7618.d

18 lines
212 B
D

interface ITest
{
int foo();
final void bar(int k)() { assert(foo() == k); }
}
class Test : ITest
{
override int foo() { return 12; }
}
void main()
{
auto test = new Test;
test.bar!12();
}