Add test case for broken delegates. Also still needs fixing!

This commit is contained in:
Christian Kamm
2008-08-15 23:13:55 +02:00
parent b74cd47016
commit d375735f55

9
tests/mini/delegate.d Normal file
View File

@@ -0,0 +1,9 @@
class C { void foo() {} }
void main()
{
C c = new C;
void delegate() dlg = &c.foo;
assert(dlg);
}