data_account.sol 473 B

1234567891011121314151617181920212223242526
  1. contract FooFoo {
  2. @payer(dataAccount)
  3. constructor() {
  4. }
  5. }
  6. contract FooBar {
  7. @payer(my_dataAccount)
  8. constructor() {
  9. }
  10. }
  11. contract BarFoo {
  12. @payer(otherdataAccount)
  13. constructor() {
  14. }
  15. }
  16. // ---- Expect: diagnostics ----
  17. // error: 2:12-23: 'dataAccount' is a reserved account name
  18. // error: 9:12-26: account names that contain 'dataAccount' are reserved
  19. // error: 16:12-28: account names that contain 'dataAccount' are reserved