Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS7066
Yield statements may not appear at the top level in interactive code.