#[fail] #30

Merged
rhi merged 6 commits from 💣 into 🐉 2023-09-24 11:39:29 -04:00

6 Commits

Author SHA1 Message Date
rhiannon morris f04c4619ef detect reserved words inside names like 'a.λ.b' 2023-09-24 17:36:26 +02:00
rhiannon morris d4de74eab6 change it to #[..] since # is also reserved 2023-09-22 18:38:40 +02:00
rhiannon morris bcfb0d81b8 update tests 2023-09-22 18:38:32 +02:00
rhiannon morris 8395bec4cb check for duplicate cases in enum matches 2023-09-22 18:37:53 +02:00
rhiannon morris 6153b4f7f8 add a couple of failing examples 2023-09-22 14:03:22 +02:00
rhiannon morris d4cfbd4045 add @[fail] modifier to declarations
- `@[fail] def foo = ...` succeeds if `foo` has some error.
- `@[fail "scope"] def foo = ...` succeeds if `foo` has some error
  containing the word "scope" somewhere
- `@[fail] namespace foo { }` works too and the error must be anywhere
  in the namespace
2023-09-22 14:03:22 +02:00