Skip to content

Instantly share code, notes, and snippets.

@aleksgapp

aleksgapp/1 Secret

Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aleksgapp/795a2d428008bdfa4823 to your computer and use it in GitHub Desktop.
Save aleksgapp/795a2d428008bdfa4823 to your computer and use it in GitHub Desktop.
Segmentation fault
protocol A {
class var a: [B]? { get }
}
class B {
}
class C {
let ca: [B]?
init(a: A) {
ca = A.a
}
}
protocol B {
var c: [C] { get }
}
protocol C {
var b: [B] { get }
}
import Foundation
func aFunc(any: Any) {
println("aFunc")
}
func bFunc() -> AnyObject {
return NSString(string: "string")
}
aFunc(bFunc())
protocol Protocol {}
class A<T: Protocol> {}
struct B {
let a: A<Protocol>
}
enum Enumaration<T> {
case Some(() -> T)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment