http://d.puremagic.com/issues/show_bug.cgi?id=9062
--- Comment #11 from Kenji Hara <k.hara...@gmail.com> 2012-11-25 01:51:06 PST --- (In reply to comment #10) > I am not sure what you are trying to do here. Anyways, the following should > work: > > template PropertyTypeOf(alias prop) { > alias PropertyTypeOf = typeof(()auto ref=>prop); > } My try is an emulation of your idea. I found two problems at least. 1. In a way that uses template function attribute deduction, getting the @trusted attribute is impossible, because it is deduced to @safe. 2. Cannot get function type from member property function, because of 'need this' error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------