class A { get; foo() {} } class B { get = 1; foo() {} }