mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
212 B
D
17 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();
|
|
}
|