Idris2/tests/idris2/error018/expected
Edwin Brady d531cc8dea
Cumulativity preparation: Add field for universe level to TType (#2076)
* Add field for universe level to TType

This doesn't do anything yet, other than introduce new universe
variables whenever we introduce a new type, but it's the first step
towards checking the universe hierarchy. Next step is to add constraints
when checking pi, unifying/converting types, and when adding data
constructors.

* TTC version increment

Thought I'd done this, but apparently I didn't save the file. Oops!

* Add structure for universe constraints

* Fix display of ambiguity errors

We need to store the Context in errors at the point where the error
occurs, or we might get some nonsense in the message. There's still a
couple of places in Error where we don't do this right. This fixes one
of them, and improves a few messages in the process.
2021-10-31 00:00:16 +01:00

41 lines
870 B
Plaintext

1/1: Building Issue1031 (Issue1031.idr)
Error: ? is not a valid pattern
Issue1031:4:13--4:14
1 | %default total
2 |
3 | ohNo : Void
4 | ohNo = let (? ** x) = the (a ** a) (Int ** 5) in x
^
1/1: Building Issue1031-2 (Issue1031-2.idr)
Error: ? is not a valid pattern
Issue1031-2:4:9--4:10
1 | %default total
2 |
3 | foo : (x : Bool) -> x === True
4 | foo = \ ? => Refl
^
1/1: Building Issue1031-3 (Issue1031-3.idr)
Error: ? is not a valid pattern
Issue1031-3:4:6--4:7
1 | %default total
2 |
3 | cool : (x : Bool) -> x === True
4 | cool ? = Refl
^
1/1: Building Issue1031-4 (Issue1031-4.idr)
Error: While processing left hand side of nice. Unsolved holes:
Main.{dotTm:799} introduced at:
Issue1031-4:4:6--4:10
1 | %default total
2 |
3 | nice : (x : Bool) -> x === True
4 | nice .(_) = Refl
^^^^