Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Object-Oriented Swift Inheritance Inheritance and Initializers

Christiaan Hendriksen
Christiaan Hendriksen
5,982 Points

Communication with the playground service was interrupted unexpectedly

When I leave the subclass parameters with (_ percentage: Double = 10.0) I get the error message in the title of this question.

Removing the space between _ and percentage makes the error go away, but stops the code working. Any ideas?

boris said
boris said
3,607 Points

That happened to me too. I think it is a bug with the new Swift 2.0 update.

Will Joyner
Will Joyner
1,813 Points

Yes this exact same thing happens to me. I get a warning about "extraneous _ in parameter" and then xcode crashes. I'm also using the new Swift 2.0 update.

Yonca Yildiral
Yonca Yildiral
1,875 Points

Same error happens even before placing an underscore with my Xcode (7.0.1). It's having the problem when trying to override the func I think. Any news from the teachers?

I'm having the same problem as well

2 Answers

boris said
boris said
3,607 Points

I wonder if apple is going to fix this error in their next update

Danya Baron
Danya Baron
3,170 Points

this is happening to me as well