mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Add test case for broken delegates. Also still needs fixing!
This commit is contained in:
9
tests/mini/delegate.d
Normal file
9
tests/mini/delegate.d
Normal file
@@ -0,0 +1,9 @@
|
||||
class C { void foo() {} }
|
||||
|
||||
void main()
|
||||
{
|
||||
C c = new C;
|
||||
void delegate() dlg = &c.foo;
|
||||
|
||||
assert(dlg);
|
||||
}
|
||||
Reference in New Issue
Block a user