diff --git a/std/typecons.d b/std/typecons.d index ac1d8b39f..28edb9b8c 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -4042,7 +4042,7 @@ template apply(alias fun) import std.functional : unaryFun; auto apply(T)(auto ref T t) - if (isInstanceOf!(Nullable, T) && is(typeof(unaryFun!fun(T.init.get)))) + if (isInstanceOf!(Nullable, T)) { alias FunType = typeof(unaryFun!fun(T.init.get));