diff --git a/source/dub/dependency.d b/source/dub/dependency.d index cd6c01d..da1b552 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -138,6 +138,8 @@ */ @property void versionSpec(string ves) { + static import std.string; + enforce(ves.length > 0); string orig = ves; @@ -200,6 +202,8 @@ /// ditto @property string versionSpec() const { + static import std.string; + string r; if (this == invalid) return "invalid";