Why doesn't throw work in Swift? -


any ideas why following doesn't work?

func somefunction() throws {     print ("this test") } 

enter image description here

i believe throws introduced in swift 2.0, if using earlier version not able use it.

https://developer.apple.com/swift/blog/?id=29


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -