Test: left-recursive rule for numbers with inheritance.