Previously gave weird runtime erorr about mismatched groups. Now correctly produces a compilation error.