Mutually recursive types and aliases don't seem to compile #280
Dimension4
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm trying to implement a simple json parser to learn the language. It seems koka has problems compiling mutually recursive types if one of them is an alias. The following results in a very long compiler error, boiling down to "type jobject not found":
If I inline
jobject
into theObject
constructor, or define it asit compiles fine. Is this a compiler bug or a limitation of aliases?
Beta Was this translation helpful? Give feedback.
All reactions