Const overwriting does not actually throw an error