Mercurial > projects > ldc
view tests/mini/delegate3.d @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | 331a176c1f4f |
children |
line wrap: on
line source
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); }