[swift-dev] Help: Get Generic Pattern Detail From TypeDecl in AST
Daniel Duan
daniel at duan.org
Mon Jan 11 16:31:17 CST 2016
Hi all,
Working on a swiftc crash in the type checker, I’m having a hard time with getting generic type pattern in the AST. For example, say we have parsed:
struct Y<T> {}
struct X<T, U> {
let a: Y<T>
let b: Y<U>
}
In the AST, the type of member “a” would be “Y<T>". But I can’t figure out how to inspect the inner “T” from the TypeDecl instance that represents a’s type.
What am I missing here?
- Daniel
More information about the swift-dev
mailing list