virtual resource tmp { // All children must implement read virtual fn read(domain source) {} } @associate([tmp]) virtual domain foo {} domain bar inherits foo {}