diff --git a/source/vibe/core/path.d b/source/vibe/core/path.d index 43e91ab..312fd0c 100644 --- a/source/vibe/core/path.d +++ b/source/vibe/core/path.d @@ -478,7 +478,7 @@ struct GenericPath(F) { GenericPath parentPath() const @nogc { auto b = Format.getBackNode(m_path); - static const Exception e = new Exception("Path has no parent path"); + static immutable Exception e = new Exception("Path has no parent path"); if (b.length >= m_path.length) throw e; return GenericPath.fromTrustedString(m_path[0 .. $ - b.length]); }