Comment #0 by nicolas.jinchereau — 2017-09-28T18:44:00Z
class C {
@property void fun(int x){ }
int fun(){ return 0; }
}
int main(string[] argv)
{
C c = new C();
//c.fun = 0;
return 0;
}
This code should not compile, but it does.
You have to un-comment the second line of main before you get the proper error:
"Error: cannot overload both property and non-property functions"
Comment #1 by robert.schadek — 2024-12-13T18:54:44Z