Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8508
The syntax 'var' for a pattern is not permitted to refer to a type, but '{0}' is in scope here.