mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 07:34:45 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
20 lines
386 B
Idris
20 lines
386 B
Idris
import Data.Vect
|
|
|
|
using (Show a, Eq a)
|
|
foo : a -> String
|
|
foo x = show x ++ show x
|
|
|
|
bar : Int -> Int
|
|
bar x = x + x
|
|
|
|
using (xs : Vect n a, n : Nat) -- get reordered in dependency order by
|
|
-- the usual implicit rules
|
|
baz : xs = xs
|
|
|
|
data Test : Type -> Type -> Type where
|
|
|
|
using (Test a b)
|
|
needle : a -> b -> ()
|
|
nardle : a -> ()
|
|
noo : b -> ()
|