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
| //: Playground - noun: a place where people can play | |
| import Foundation | |
| // OK: | |
| var test: ([Int : Int], Int) -> [Int : Int] = { (x, y) in x } | |
| // CRASH: | |
| //var test2: ([Int : Int], Int) -> [Int : Int] = { (var x, y) in x } |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>IE Compatibility Test</title> | |
| </head> | |
| <body> | |
| <h1 id="test-h1"></h1> |
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
| import XCTest | |
| class GenericThing<T: Equatable> { | |
| func foo(t: T) { | |
| NSLog("foo \(t)") | |
| } | |
| } | |
| func genericFunc<T: Equatable>(left: T, right: T) { | |
| NSLog("\(left) == \(right) ?: \(left == right)") |
NewerOlder