#[fail] #30
1 changed files with 10 additions and 0 deletions
10
examples/fail.quox
Normal file
10
examples/fail.quox
Normal 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
|
Loading…
Reference in a new issue