Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8505
A default literal 'default' is not valid as a pattern. Use another literal (e.g. '0' or 'null') as appropriate. To match everything, use a discard pattern '_'.