Skip to content

Commit

Permalink
Add regression test for #2349 (#4584)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott authored and melted committed Nov 6, 2018
1 parent c536a6e commit 1a7fa35
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/TestData.hs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ testFamiliesData = [
-- ( 5, ANY ),
( 6, ANY ),
( 7, ANY ),
( 8, ANY )]),
( 8, ANY ),
-- ( 9, ANY ),
( 10, ANY )]),
("interpret", "Interpret",
[ ( 1, ANY ),
( 2, ANY ),
Expand Down
Empty file added test/interfaces010/expected
Empty file.
12 changes: 12 additions & 0 deletions test/interfaces010/interfaces010.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Test

interface ListLike a where
Elem : Type
fromList : List Elem -> a

data Silly = None | Cons Int Silly

ListLike Silly where
Elem = Int
fromList [] = None
fromList (x :: xs) = Cons x (fromList xs)
3 changes: 3 additions & 0 deletions test/interfaces010/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
${IDRIS:-idris} $@ --nocolour --consolewidth 70 interfaces010.idr --check
rm -f interfaces010 *.ibc

0 comments on commit 1a7fa35

Please sign in to comment.