New issue
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
Error message changes after interface file has been removed #4472
Comments
Here is a self-contained test case:
module Issue4472X.A where
postulate
+_ : Set → Set
module Issue4472X.B where
open import Issue4472X.A public renaming (+_ to -_)
open import Issue4472X.B
_ = - - On master (with or without compact regions patch 556be02), relevant part of the output of
Confusingly, the behaviour is different if the qualifier
Why is that? |
Intrigued why the qualifier name part should matter, I ran the test with the following set of files, with
module RENAME where
postulate
+_ : Set → Set
module B where
open import RENAME public renaming (+_ to -_)
open import B
_ = - - With no interface files used, the result is always:
With interface files used, the result depends on RENAME and is apparently pseudo-random, but consistent. For example:
RENAME <- ["f","g","i","j","m","n","r","s","u","v","z"] the relevant part of the output becomes
RENAME <- ["a","b","c","d","e","h","k","l","o","p","q","t","w","x","y"] the result is as with no interface files used. |
I ran the test suite with
--compact-regions
turned on, and noted that a test case related to sections failed. This problem can be reproduced without using--compact-regions
:Note that the error messages are not identical.
The text was updated successfully, but these errors were encountered: