#[fail] #30

Merged
rhi merged 6 commits from 💣 into 🐉 2023-09-24 11:39:29 -04:00
Showing only changes of commit 6153b4f7f8 - Show all commits

10
examples/fail.quox Normal file
View file

@ -0,0 +1,10 @@
@[fail "but cases for"]
def missing-b : {a, b} → {a} =
λ x ⇒ case x return {a} of { 'a ⇒ 'a }
-- @[fail "duplicate tags"]
-- def repeat-enum-case : {a} → {a} =
-- λ x ⇒ case x return {a} of { 'a ⇒ 'a; 'a ⇒ 'a }
@[fail "duplicate tags"]
def repeat-enum-type : {a, a} = 'a