indirect type Foo {
let x: Int
var y: Foo
let z: String
}
type Bar {
let x: Int
let z: String
}
func fhdjsfhjskdhfjkds() {
let x = 5 as Any
println(x as Int)
}
func nooooo() {
let x = Bar(x: 5, z: String(cString: "fdshfjkdshfksd")) as Any
println(x)
}
func main() {
nooooo()
fhdjsfhjskdhfjkds()
let x = ("a", 4) //as Any
println(x)
let anyX = x as Any
let foo = Foo(x: 0, y:
Foo(x: 6540, y: nil, z: String(cString: "fdshfjkdshfksd")),
z: String(cString: "fdsfs"))
println(((foo.y as Any) as Foo).x)
println(foo)
}
this now works