Files
ldc/tests/mini/delegate3.d
Tomas Lindquist Olsen 3c400ff21c Removed error on naked, not fully complete, but I'll be doing more work on it during this Christmas, and some things do work.
Fixed taking delegate of final class method. see mini/delegate3.d.
2008-12-09 14:07:30 +01:00

19 lines
183 B
D

module bar;
class S
{
int i;
final int foo()
{
return i;
}
}
void main()
{
auto s = new S;
s.i = 42;
auto dg = &s.foo;
assert(dg() == 42);
}