Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS7020
Cannot use 'yield' in top-level script code