class B { [get]; foo() {} } class C { [set]; foo(v) {} }