Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1671
A namespace declaration cannot have modifiers or attributes