mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
8 lines
450 B
C
8 lines
450 B
C
struct Foo { int x; }
|
|
|
|
fn void Foo.test(Foo f) @operator(intvec) {} // #error: @operator(intvec) can only be used with macros.
|
|
fn void Foo.test(Foo f) @operator(floatvec) {} // #error: @operator(floatvec) can only be used with macros.
|
|
macro void Foo.test(Foo f) @operator(intvec) {} // #error: @operator(intvec) cannot be used with methods
|
|
macro void Foo.test(Foo f) @operator(floatvec) {} // #error: @operator(floatvec) cannot be used with methods
|
|
|