Created
February 23, 2015 22:38
-
-
Save Pretz/308f26e2ad3afeb36aa9 to your computer and use it in GitHub Desktop.
Swift 1.2 override
This file contains 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
import Foundation | |
class Something: NSObject { | |
func fun(string: String) { | |
println(string) | |
} | |
// error: method 'fun' redeclares Objective-C method 'fun:' | |
func fun(int: Int) { | |
println(int) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment