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:
4218
4218
# 173| getElement(5): [IfConfigDecl] #if ...
4219
4219
# 174| getElement(6): [IntegerLiteralExpr] 9
4220
4220
# 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
4221
4235
expressions.swift:
4222
4236
# 1| [TopLevelCodeDecl] { ... }
4223
4237
# 1| getBody(): [BraceStmt] { ... }
Original file line number Diff line number Diff line change @@ -178,3 +178,7 @@ func ifConfig() {
178
178
12
179
179
#endif
180
180
}
181
+
182
+ class B { }
183
+ typealias A = B
184
+ typealias C = Int ?
You can’t perform that action at this time.
0 commit comments