mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 13:47:26 +03:00
16 lines
319 B
Plaintext
16 lines
319 B
Plaintext
-- Used to fail on the guard
|
|
--
|
|
-- typechecker.tests/caseguard.u FAILURE I'm not sure what x means at line 3, columns 9-10
|
|
--
|
|
-- 3 | x | x == "woot" -> false
|
|
--
|
|
-- Whatever it is, it has a type that conforms to Text.
|
|
|
|
use Universal ==
|
|
|
|
f = cases
|
|
x | x == "woot" -> false
|
|
y | otherwise -> true
|
|
|
|
-- > f "woot"
|