You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec and compiler currently don't allow 'use' statements at the same scope as field and method declarations. It seems useful to do so, for 'use' of both enums and classes.
Steps to Reproduce
Source Code:
enum classTag { field1, field2};
class Foo {
use classTag;
var tag: classTag = field1;
}
The spec and compiler currently don't allow 'use' statements at the same scope as field and method declarations. It seems useful to do so, for 'use' of both enums and classes.
Steps to Reproduce
Source Code:
Compile command:
chpl foo.chpl
Associated Future Test(s):
test/types/enum/lydia/declaredInClass2.chpl
test/types/enum/lydia/useAtClassScope.chpl
#6870
Configuration Information
chpl --version
: 1.16.0 (prerelease)The text was updated successfully, but these errors were encountered: