Avatar
Avatar
omochimetaru
@swift-5.0.3 @swift-main -frontend -dump-ast func foo() -> (Int...) -> Void { return { (a: Int...) in } } (edited)
(source_file "<stdin>" (func_decl range=[<stdin>:1:1 - line:1:60] "foo()" interface type='() -> (Int...) -> Void' access=internal (parameter_list range=[<stdin>:1:9 - line:1:10]) (result (type_function (type_tuple (type_ident (component id='Int' bind=Swift.(file).Int))) (type_ident (component id='Void' bind=Swift.(file).Void)))) (brace_stmt range=[<stdin>:1:32 - line:1:60] (return_stmt range=[<stdin>:1:34 - line:1:58] (closure_expr type='(Int...) -> ()' location=<stdin>:1:41 range=[<stdin>:1:41 - line:1:58] discriminator=0 escaping (parameter_list (parameter "a" type='[Int]' interface type='[Int]' variadic) range=[<stdin>:1:43 - line:1:53]) (brace_stmt range=[<stdin>:1:41 - line:1:58]))))))stderr: (edited)