Idris-dev/test/unique001/unique001d.idr
Edwin Brady ddf9779f87 Fix borrowed type check
Actually a borrowed type can be used as many times as you like, it's
just the names inside the pattern that can't be used without being lent
first!
2014-08-22 00:12:58 +01:00

4 lines
64 B
Idris

steal : {a : UniqueType} -> Borrowed a -> a
steal (Read x) = x