Properties don't behave like variables?

Mehrdad wfunction at hotmail.com
Sun May 6 19:05:20 PDT 2012


Why doesn't this compile?

@property int foo() { return 1; }
@property void foo(int v) { }

void main()
{
	foo |= 2;
}


More information about the Digitalmars-d mailing list