[Swift-user] NullPointerException

Ben Clifford benc at hawaga.org.uk
Wed Aug 27 04:49:29 CDT 2008


On Tue, 26 Aug 2008, Andriy Fedorov wrote:

> I was not supposed to have ";" at the end of the "foreach" construct:

Its actually nothing to do with the foreach - a swift program consisting 
of only this line:

  ;;

exhibits the same error.

I've changed the language grammar to disallow empty statements, in r2205. 
This will give a different error message now, pointing at the semicolon.

-- 




More information about the Swift-user mailing list