Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8661
Cannot specify 'readonly' modifiers on both accessors of property or indexer '{0}'. Instead, put a 'readonly' modifier on the property itself.