I think the second thing you've shown should give an error.