Skip to content

Instantly share code, notes, and snippets.

@corosukeK
Created June 20, 2014 10:54
Show Gist options
  • Save corosukeK/89149d41d697056f2425 to your computer and use it in GitHub Desktop.
Save corosukeK/89149d41d697056f2425 to your computer and use it in GitHub Desktop.
import Foundation
func hoge() -> Int
{
println("Intだよー")
return 0
}
func hoge() -> String
{
println("Stringだよー")
return "hoge"
}
var int:Int = hoge() // Intだよー
var string:String = hoge() // Stringだよー
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment