diff --git a/source/dub/dependency.d b/source/dub/dependency.d index 55e4382..23b3fdd 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -135,14 +135,26 @@ } /// Determines if the dependency is required or optional. - @property bool optional() const { return m_optional; } + @property bool optional() const scope @safe pure nothrow @nogc + { + return m_optional; + } /// ditto - @property void optional(bool optional) { m_optional = optional; } + @property void optional(bool optional) scope @safe pure nothrow @nogc + { + m_optional = optional; + } /// Determines if an optional dependency should be chosen by default. - @property bool default_() const { return m_default; } + @property bool default_() const scope @safe pure nothrow @nogc + { + return m_default; + } /// ditto - @property void default_(bool value) { m_default = value; } + @property void default_(bool value) scope @safe pure nothrow @nogc + { + m_default = value; + } /// Returns true $(I iff) the version range only matches a specific version. @property bool isExactVersion() const scope @safe