resource bar inherits foo {} domain baz { foo.read(this); }