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
Trying to define opaque type as a top-level statement in the repl is causing a parser error. It is also not working if opaque type definition is loaded from the file that is normally passing the compilation, using :l. Wrapping opaque type in object solves the problem.
Kordyjan
changed the title
Opaque types not working as top level statements in repl
Opaque type aliases not working as top level statements in repl
Jun 8, 2021
Seems that somehow isDefIntro(modifierTokens) is false despite there being an explicit check for soft modifiers. Does the REPL wrap the code somehow, that might be causing this issue?
Trying to define opaque type as a top-level statement in the repl is causing a parser error. It is also not working if opaque type definition is loaded from the file that is normally passing the compilation, using
:l
. Wrapping opaque type in object solves the problem.Compiler version
master branch as of commit d7d4a9f
Minimized code
Any opaque type definition for example:
Output
Expectation
Opaque type is defined without errors
The text was updated successfully, but these errors were encountered: