← Back to index
|
Original Bugzilla link
Bug 20439 – memoize fails with types that have a void opAssign
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2019-12-09T09:18:57Z
Last change time
2019-12-13T04:02:32Z
Keywords
pull
Assigned to
No Owner
Creator
Ali Ak
Comments
Comment #0
by ali.akhtarzada — 2019-12-09T09:18:57Z
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
Comment #1
by dlang-bot — 2019-12-09T09:43:11Z
@aliak00 updated dlang/phobos pull request #7311 "Fixes 20439: fix memoize return statement" fixing this issue: - Fixes issue 20439: fix memoize return statement
https://github.com/dlang/phobos/pull/7311
Comment #2
by dlang-bot — 2019-12-13T04:02:32Z
dlang/phobos pull request #7311 "Fixes 20439: fix memoize return statement" was merged into master: - 398d63169eb250bc125c62a59e1cc5922e31df29 by Ali Akhtarzada: Fixes issue 20439: fix memoize return statement
https://github.com/dlang/phobos/pull/7311