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
module Main
include "./test1"
from Test1 use *
print(A)
print(Test1.runTest() == A)
test1.gr
module Test1
include "./test2"
from Test2 use { type Test }
provide { type Test }
provide let runTest = Test2.runTest
test2.gr
/* grainc-flags --no-pervasives */
module Test2
provide enum Test {
A,
B,
C,
}
provide let runTest = () => A
When you run this it gives the error shown in the image below
It loosk as though when you re-export the type it belongs to the module you are re-exporting from where as the intial type belongs to the module the function it exists in and they no longer match.
The text was updated successfully, but these errors were encountered:
test.gr
test1.gr
test2.gr
When you run this it gives the error shown in the image below
It loosk as though when you re-export the type it belongs to the module you are re-exporting from where as the intial type belongs to the module the function it exists in and they no longer match.
The text was updated successfully, but these errors were encountered: