E0011: file-scoped limitless metadata in the wrong place

View source

meta limitless("file") lifts the source-size limits for the whole file, so it is a decision about the file and not about one declaration.

meta limitless("file") lifts the source-size limits for the whole file, so it is a decision about the file and not about one declaration. ADR-0048 says it must stand once, before every declaration. The parser reports this error when it follows a declaration, or when it is repeated. The error points at the misplaced meta limitless("file") line.

Example

actus
verb main() {
}

meta limitless("file")
verb helper() {
}

Fix

Move the line to the start of the file. To lift the limits for one verb only, use meta limitless("verb") in front of that verb.

actus
meta limitless("file")

verb main() {
}

verb helper() {
}

Run actus explain E0011 in your terminal to read this entry offline. Browse Lexer & parser or all error codes.