File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
swift/ql/test/library-tests/ast Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4218,6 +4218,20 @@ declarations.swift:
42184218# 173| getElement(5): [IfConfigDecl] #if ...
42194219# 174| getElement(6): [IntegerLiteralExpr] 9
42204220# 175| getElement(7): [IntegerLiteralExpr] 10
4221+ # 182| [ClassDecl] B
4222+ # 182| getMember(0): [DestructorDecl] B.deinit()
4223+ # 182| InterfaceType = (B) -> () -> ()
4224+ # 182| getSelfParam(): [ParamDecl] self
4225+ # 182| Type = B
4226+ # 182| getBody(): [BraceStmt] { ... }
4227+ # 182| getMember(1): [ConstructorDecl] B.init()
4228+ # 182| InterfaceType = (B.Type) -> () -> B
4229+ # 182| getSelfParam(): [ParamDecl] self
4230+ # 182| Type = B
4231+ # 182| getBody(): [BraceStmt] { ... }
4232+ # 182| getElement(0): [ReturnStmt] return
4233+ # 183| [TypeAliasDecl] A
4234+ # 184| [TypeAliasDecl] C
42214235expressions.swift:
42224236# 1| [TopLevelCodeDecl] { ... }
42234237# 1| getBody(): [BraceStmt] { ... }
Original file line number Diff line number Diff line change @@ -178,3 +178,7 @@ func ifConfig() {
178178 12
179179 #endif
180180}
181+
182+ class B { }
183+ typealias A = B
184+ typealias C = Int ?
You can’t perform that action at this time.
0 commit comments