Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8852
Init-only property or indexer '{0}' can only be assigned in an object initializer, or on 'SELF' or 'SUPER' in an instance constructor or an 'init' accessor.