Minor attribute combination checking (#2918)

* Minor attribute combination checking

* Added tests to the test suite.
This commit is contained in:
Damien Wilson
2026-02-19 10:58:39 -06:00
committed by GitHub
parent 152558f5bc
commit 9efb9b90d1
2 changed files with 26 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
module test;
fn void foo() @inline @noinline // #error: cannot be combined
{}
fn void bar() @used @unused // #error: cannot be combined
{}
fn bool baz() @nodiscard @noreturn // #error: cannot be combined
{}