Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jun 20, 2024
1 parent 0de6e37 commit 59d1249
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ instance ToGenericError WrongType where
<+> thing
<+> "has type:"
<> line
<> indent' (ppCode opts' (err ^. wrongTypeActual ^. normalizedExpression))
<> indent' (ppCode opts' (err ^. wrongTypeActual . normalizedExpression))
<> line
<> "but is expected to have type:"
<> line
Expand Down Expand Up @@ -656,7 +656,7 @@ instance ToGenericError BadScope where
i = getLoc (e ^. badScopeVar)
var = e ^. badScopeVar
msg :: Doc Ann =
annotate AnnImportant "Oops! This is a known bug in the juvix compiler."
annotate AnnImportant "Oops! This is a known bug in the Juvix compiler."
<> line
<> "Most likely, the inference algorithm inserted the variable"
<+> ppCode opts' var
Expand Down
2 changes: 1 addition & 1 deletion test/Compilation/Negative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ tests =
$(mkRelDir ".")
$(mkRelFile "test005.juvix"),
NegTest
"Test006: Ill scoped term (Thi is a bug. It should be positive)"
"Test006: Ill scoped term (This is a bug. It should be positive)"
$(mkRelDir ".")
$(mkRelFile "test006.juvix")
]
3 changes: 0 additions & 3 deletions tests/Compilation/negative/test006.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ type Box (A : Type) :=

x : Box ((B : Type) → B → B) :=
box {_} λ {C x := x};

-- (B : Type) → B → B
-- (x1 : _@1) -> (x2 : _@2) -> _@3

0 comments on commit 59d1249

Please sign in to comment.