I tested it using the compiler on the command line and it complained about both assignments.
My guess is that you may be using an
IDE and that compiler may have complained about the finally first and the IDE stopped the compiler at that point.
Or it's possible that the compiler did complain but the IDE might not have displayed both errors.