Easy way is using template mixin.

```d
template AddProp() { @property int y() { return 1; } }
template AddFunc() { void y(int, int) {} }
class C
{
    mixin AddProp;
    mixin AddFunc;
    // Here, 'y' is OverloadSet
}
void main()
{
    auto c = new C();
    // c.y == DotExp(e1: VarExp, e2: OverExp)
    c.y = 1;
}
```