File tree Expand file tree Collapse file tree 5 files changed +16
-12
lines changed
Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,9 @@ mutual
193193 go (IMustUnify fc r tm) exps autos named
194194 = Erased fc . Dotted <$> go tm exps autos named
195195 go (IPrimVal fc c) _ _ _ = pure (PrimVal fc c)
196- -- We're taking UniqueDefault here, _and_ we're falling through to nextVar otherwise, which is sketchy.
197- -- On option is to try each and emit an AmbiguousElab? We maybe should respect `UniqueDefault` if there
196+ go (IType fc) _ _ _ = pure (TType fc $ MN " top" 0 )
197+ -- We're taking UniqueDefault here, _and_ we're falling through to error otherwise, which is sketchy.
198+ -- One option is to try each and emit an AmbiguousElab? We maybe should respect `UniqueDefault` if there
198199 -- is no evidence (mty), but we should _try_ to resolve here if there is an mty.
199200 go (IAlternative _ (UniqueDefault tm) _ ) exps autos named
200201 = go tm exps autos named
Original file line number Diff line number Diff line change 111/1: Building Main (Main.idr)
2- Warning: Main:4:11--4:15:Unsupported term in impossible clause: Type
3-
4- Main:4:11--4:15
5- 1 | import Language.Reflection
6- 2 |
7- 3 | matchType : Bool -> Void
8- 4 | matchType Type impossible
9- ^^^^
10-
112Warning: Main:7:12--7:20:Unsupported term in impossible clause: `((fromInteger 1 + fromInteger 1))
123
134Main:7:12--7:20
@@ -165,7 +156,7 @@ Main:3:1--3:25
165156 ^^^^^^^^^^^^^^^^^^^^^^^^
166157
167158Missing cases:
168- matchType _
159+ matchType True
169160
170161Error: matchWith is not covering.
171162
Original file line number Diff line number Diff line change 1+ %default total
2+
3+ data X : Type -> Type where
4+ MkX : (a : Type ) -> X a
5+
6+ f : X Nat -> ()
7+ f (MkX Type ) impossible
8+ f (MkX Nat ) = ()
Original file line number Diff line number Diff line change 1+ 1/1: Building Main (Main.idr)
Original file line number Diff line number Diff line change 1+ . ../../../testutils.sh
2+
3+ check Main.idr
You can’t perform that action at this time.
0 commit comments