Idris2/tests/idris2/reg039/dupdup.idr
Edwin Brady 12f40f538f Use correct multiplicity in scope of lets
The scope should be checked at the same multiplicity as the enclosing
expression.
2021-04-04 18:10:34 +01:00

3 lines
70 B
Idris

dupLinear : (1 x : a) -> (a, a)
dupLinear x = dup (let var = 22 in x)