Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8780
A variable may not be declared within a 'not' or 'or' pattern.