In this case it counts as both (since there is no declaration). Which is valid then?