module pind.samples.ja.lambda.lambda_2; struct MyStruct { void func() { } } void main() { auto o = MyStruct(); auto f = &MyStruct.func; // 型の上 auto d = &o.func; // オブジェクトの上 static assert(is (typeof(f) == void function())); static assert(is (typeof(d) == void delegate())); }