-
-
Save aleksgapp/795a2d428008bdfa4823 to your computer and use it in GitHub Desktop.
Segmentation fault
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
protocol A { | |
class var a: [B]? { get } | |
} | |
class B { | |
} | |
class C { | |
let ca: [B]? | |
init(a: A) { | |
ca = A.a | |
} | |
} |
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
protocol B { | |
var c: [C] { get } | |
} | |
protocol C { | |
var b: [B] { get } | |
} |
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 | |
func aFunc(any: Any) { | |
println("aFunc") | |
} | |
func bFunc() -> AnyObject { | |
return NSString(string: "string") | |
} | |
aFunc(bFunc()) |
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
protocol Protocol {} | |
class A<T: Protocol> {} | |
struct B { | |
let a: A<Protocol> | |
} |
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
enum Enumaration<T> { | |
case Some(() -> T) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment