https://issues.dlang.org/show_bug.cgi?id=20439
Issue ID: 20439 Summary: memoize fails with types that have a void opAssign Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: ali.akhtarz...@gmail.com struct S(T) { void opAssign(T)(T) {} } S!int f() { return S!int(); } void main() { alias test = memoize!f; } functional.d(1138): Error: return expression expected --