Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 06: Ambiguous reference to member '+' #57

Closed
DRiNVAD3R opened this issue Feb 5, 2017 · 2 comments
Closed

Project 06: Ambiguous reference to member '+' #57

DRiNVAD3R opened this issue Feb 5, 2017 · 2 comments

Comments

@DRiNVAD3R
Copy link
Contributor

DRiNVAD3R commented Feb 5, 2017

Hello, I get the error:
Ambiguous reference to member '+'
at this:
self.locationLabel.text = locality! + postalCode! + administrativeArea! + country!
any way to fix it?
I am just getting started with swift so I am not sure what the problem here is :/

EDIT:
The problem seems to be with the + administrativeArea! + country!, part I converted to swift 3.

@DRiNVAD3R
Copy link
Contributor Author

change

self.locationLabel.text = locality! + postalCode! + administrativeArea! + country!

with

self.locationLabel.text = postalCode! + " " + locality!
self.locationLabel.text?.append("\n" + administrativeArea! + ", " + country!)

@allenwong
Copy link
Owner

Thanks a lot! I merged that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants