Skip to content

Instantly share code, notes, and snippets.

@curtislinden
Created September 14, 2015 18:17
Show Gist options
  • Save curtislinden/19f21adbcd90d4771e4a to your computer and use it in GitHub Desktop.
Save curtislinden/19f21adbcd90d4771e4a to your computer and use it in GitHub Desktop.
Struct Cat {
function walk()
}
func TakeAWalk( Cat pet ) {
pet.walk()
}
--
struct Dog {
function walk()
}
d = Dog.create()
TakeAWalk(d) // interface matches - type doesn't match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment