Closed GCuser99 closed 1 year ago
For reference VB6 allows this as well. Also applies regardless of project type or whether it's .twin instead, or whether the const is placed in a class or module, or whether it's public or private.
Fixed in BETA 221. Thanks!
Describe the bug tB throws a compile error when I attempt to assign a constant to a public Enum value declared in another module.
To Reproduce Steps to reproduce the behavior:
tB indicates a compile error for myConstants.myA "[myConstants] does not contain 'myA' or is inaccessible in this context"
Expected behavior This should behave similar to VBA and compile.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop: OS: Windows 11 Excel 365 (64-bit) twinBASIC compiler version IDE Beta 201
Additional context Excel VBA allows the above without error. Additionally, if I make the following change in MyClass.cls:
tB will not throw a compile error.