data_account_visibility.sol 241 B

12345678
  1. contract Foo {
  2. function addr_account() public pure returns (address) {
  3. return tx.accounts.dataAccount.key;
  4. }
  5. }
  6. // ---- Expect: diagnostics ----
  7. // error: 3:16-27: function declared 'pure' but this expression reads from state