Last active
March 14, 2016 17:13
-
-
Save longlongjump/528fa5ae28dfbb45886a to your computer and use it in GitHub Desktop.
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
// test.swift | |
func foo<T>(val: T) { | |
debugPrint("func foo<T>(val: T)") | |
} | |
func foo(val: Int) { | |
debugPrint("func foo(val: Int)") | |
} | |
func test<T>(val: T) { | |
foo(val) | |
} | |
test(42) // prints "func foo<T>(val: T)" | |
test("42") // prints "func foo<T>(val: T)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment