Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8511
An expression of type '{0}' cannot be handled by a pattern of type '{1}'. Please use language version '{2}' or greater to match an open type with a constant pattern.