Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1949
The contextual keyword 'var' cannot be used in a range variable declaration