[Issue 20439] New: memoize fails with types that have a void opAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 9 09:18:57 UTC 2019
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: nobody at puremagic.com
Reporter: ali.akhtarzada at 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
--
More information about the Digitalmars-d-bugs
mailing list