mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Merge pull request #10618 from Vladiwostok/fix-linting-functional
Fix linting issue in functional.d
This commit is contained in:
commit
f95cd32419
1 changed files with 4 additions and 2 deletions
|
@ -1349,7 +1349,8 @@ template memoize(alias fun)
|
|||
alias memoize = impl;
|
||||
}
|
||||
|
||||
auto impl(Args...)(Args args) if (is(typeof(fun(args))))
|
||||
auto impl(Args...)(Args args)
|
||||
if (is(typeof(fun(args))))
|
||||
{
|
||||
import std.typecons : Tuple, tuple;
|
||||
import std.traits : Unqual;
|
||||
|
@ -1393,7 +1394,8 @@ template memoize(alias fun, uint maxSize)
|
|||
alias memoize = impl;
|
||||
}
|
||||
|
||||
auto impl(Args...)(Args args) if (is(typeof(fun(args))))
|
||||
auto impl(Args...)(Args args)
|
||||
if (is(typeof(fun(args))))
|
||||
{
|
||||
static if (args.length > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue