diff --git a/source/dub/internal/vibecompat/inet/path.d b/source/dub/internal/vibecompat/inet/path.d index 3baf10d..d449944 100644 --- a/source/dub/internal/vibecompat/inet/path.d +++ b/source/dub/internal/vibecompat/inet/path.d @@ -132,8 +132,8 @@ foreach( i, f; m_nodes ){ version(Windows) { if( i > 0 ) ret.put('\\'); } - version(Posix) { if( i > 0 ) ret.put('/'); } - else { enforce("Unsupported OS"); } + else version(Posix) { if( i > 0 ) ret.put('/'); } + else { static assert(0, "Unsupported OS"); } ret.put(f.toString()); }