-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
When serializing a blocked definition, we need to deal with the blocker. Since a blocked definition can never be unblocked after serialization, we serialize the blocker as `neverUnblock`.
- Loading branch information
1 parent
6986b28
commit 5e47be6
Showing
4 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Andreas, 2024-01-02, issue #7044, test case by Christian Sattler. | ||
|
||
import Issue7044Import | ||
|
||
-- Used to crash with internal error when trying to serialized | ||
-- a blocked definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Andreas, 2024-01-02, issue #7044, test case by Christian Sattler. | ||
-- This module has a blocked definition, which needs to be serialized | ||
-- correctly as postulate blocked forever. | ||
|
||
{-# OPTIONS --allow-unsolved-metas #-} | ||
|
||
module Issue7044Import where | ||
|
||
data T : Set where | ||
t : T | ||
|
||
postulate | ||
X : Set | ||
x : X | ||
|
||
A : Set | ||
A = {!!} | ||
|
||
foo : A → X | ||
foo t = x |