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;
The following top level declarations should produce an error or warning during compilation, since attributes
virtual
andoverride
do not have meaning outside contracts and traits.