We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.gr
module Main include "./test1" from Test1 use { type Test }
test1.gr
module Test1 include "./test2" from Test2 use { type Test } provide { type Test }
test2.gr
module Test2 provide enum Test { A, B, C, }
When you try to compile the program above it gives the error in the provided picture. This seems to be an issue with re-providng types.
The text was updated successfully, but these errors were encountered:
Curiously enough if you use
from Test1 use * print(A)
it works just fine.
Sorry, something went wrong.
parseInt
Err
Number.parseInt
I did some digging onto this and it turns out you can import the type by doing.
from Test1 use { type Test2 }
so bassically grain is replacing the type name with the module name,
alex-snezhko
Successfully merging a pull request may close this issue.
test.gr
test1.gr
test2.gr
When you try to compile the program above it gives the error in the provided picture. This seems to be an issue with re-providng types.
The text was updated successfully, but these errors were encountered: