Files
c3c/test/test_suite/methods/operator_defined_twice.c3
Christoffer Lerno 5c77c9a754 - Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +01:00

10 lines
212 B
Plaintext

typedef Foo = int;
fn int Foo.fadd(&self, int x) @operator([]) { return 1; }
fn int Foo.badd(&self, int x) @operator([]) { return 1; } // #error: This operator is already defined
fn void main()
{
Foo x = 1;
}