ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.6k stars 179 forks source link

Test assertion string bugfix #926

Closed g-r-a-n-t closed 12 months ago

g-r-a-n-t commented 1 year ago

What was wrong?

Yul codegen was failing to include string literals used in test assertions. This resulted in a compiler error.

Example:

#test
fn foo() {
    assert false, "oops"
}

How was it fixed?

I had to reorder some statements dealing with the analyzer context in the Yul test lowering function.

To-Do