tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
371 stars 103 forks source link

`override` and `virtual` should not be allowed outside contracts and traits #638

Closed jeshecdom closed 2 months ago

jeshecdom commented 2 months ago

The following top level declarations should produce an error or warning during compilation, since attributes virtual and override do not have meaning outside contracts and traits.

virtual const TEST1: Int = 2;
override const TEST2: Int = 2;
virtual override const TEST3: Int = 2;
override virtual const TEST4: Int = 2;