Created
October 4, 2016 23:06
-
-
Save bjhomer/df69be84378eea0b58c98a45554ab93a to your computer and use it in GitHub Desktop.
What's wrong here?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func doThing(x: Int, y: Int, z: Int) -> Int { | |
return x + y + z | |
} | |
class Foo { | |
func doThing(x: Int) { | |
doThing(x: x, y: 2, z: 4) // extra argument 'y' in call | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears that this works: