class foo {} class foo extends bar {} class foo extends foo.bar {}