Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8185
A declaration is not allowed in this context.