Cannot instantiate ReturnType with lambda

monkyyy crazymonkyyy at gmail.com
Sat Jul 26 23:44:03 UTC 2025


On Saturday, 26 July 2025 at 23:08:35 UTC, luafyn wrote:
>     alias U = ReturnType!fn;

`ReturnType!(fn!T)` works

id avoid being this explicit with types tho, type inference is 
unidirectional in d, its best to lean into it and follow the 
natural flow


More information about the Digitalmars-d-learn mailing list