> On Jul 1, 2015, at 4:49 PM, Rick Mann <rm...@latencyzero.com> wrote: > > I'm trying to define a Swift wrapper around CGContext. I want to assert that > a Context object, if successfully initialized, will always have a valid > CGContextRef property. Since at least one of my initializers can fail, I set > it up as "throws". > > After getting the actual init code to compile, I've run into this: "error: > all stored properties of a class instance must be initialized before throwing > from an initializer"
According to Chris Lattner (on the swift-language mailing list) this is a known problem in the current compiler and will be fixed. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com