Avatar
Avatar
omochimetaru
@swift-main -frontend -dump-ast -enable-experimental-feature Macros print(#stringify(1 + 1)) (edited)
swiftNightly BOT 11/16/2022 9:51 PM
exit status: 1 with stdout:(source_file "<stdin>" (top_level_code_decl range=[<stdin>:1:1 - line:1:24] (brace_stmt implicit range=[<stdin>:1:1 - line:1:24] (call_expr type='<null>' (overloaded_decl_ref_expr type='<null>' name=print number_of_decls=2 function_ref=single) (argument_list (argument (macro_expansion_expr type='<null>' name=stringify (argument_list (argument (binary_expr type='<null>' (overloaded_decl_ref_expr type='<null>' name=+ number_of_decls=35 function_ref=single) (argument_list implicit (argument (integer_literal_expr type='<null>' value=1 builtin_initializer=**NULL** initializer=**NULL**)) (argument (integer_literal_expr type='<null>' value=1 builtin_initializer=**NULL** initializer=**NULL**)))))))))))))stderr:<stdin>:1:1: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) print(#stringify(1 + 1)) ^ (edited)