leo/tests/expectations/compiler/function/self_finalize_fail.out
Collin Chin 4a0ee1d9d8
[Feature] implement block.height command (#2420)
* implement initial block.height

* commit.height parsing and code generation

* patch self.caller tests

* add error for self.caller in a finalize context

* fix test
2023-06-20 16:36:11 -07:00

6 lines
265 B
Plaintext

---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372076]: `self.caller` is not a valid operand in a finalize context.\n --> compiler-test:7:30\n |\n 7 | assert_eq(addr, self.caller);\n | ^^^^^^\n"