diff --git a/source/dub/dub.d b/source/dub/dub.d index d1509c5..1a41cc3 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -785,7 +785,7 @@ { const vrange = dep.visit!( (VersionRange range) => range, - (any) => throw new Exception("Cannot call `dub.fetch` with a " ~ typeof(any).stringof ~ " dependency"), + function VersionRange (any) { throw new Exception("Cannot call `dub.fetch` with a " ~ typeof(any).stringof ~ " dependency"); } ); return this.fetch(packageId, vrange, location, options, reason); }