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
foo x = case x of
Index_Sub_Range.Sample _ _ -> 1
_ -> 2
main = foo 3
(note no imports at the top)
Actual behaviour
It yields:
<Unknown source>: error: The name `Index_Sub_Range.Sample` could not be found.
Aborting due to 1 errors and 0 warnings.
Execution finished with an error: Compilation aborted due to errors.
This is quite problematic as if such an error occurs during a bigger refactor it may be relatively hard to find the root cause of the error - we do not even know which file the error occurs in.
Expected behaviour
We should had source location as in all kinds of other errors.
The text was updated successfully, but these errors were encountered:
Maybe better showing is a repro on nonexistent types:
foo x = case x of
Foo.Bar _ _ -> 1
_ -> 2
main = foo 3
<Unknown source>: error: The name `Foo.Bar` could not be found.
Aborting due to 1 errors and 0 warnings.
Execution finished with an error: Compilation aborted due to errors.
but they both demonstrate essentially the same issue.
The repro seems to be fairly simple:
(note no imports at the top)
Actual behaviour
It yields:
This is quite problematic as if such an error occurs during a bigger refactor it may be relatively hard to find the root cause of the error - we do not even know which file the error occurs in.
Expected behaviour
We should had source location as in all kinds of other errors.
The text was updated successfully, but these errors were encountered: