solidity/test/libyul/yulSyntaxTests/for_statement_nested_break.yul

12 lines
189 B
Plaintext
Raw Normal View History

{
let x:bool
for {let i := 0} x {}
{
function f() { break }
}
}
// ====
// dialect: evmTyped
// ----
// SyntaxError 2592: (57-62): Keyword "break" needs to be inside a for-loop body.