ASTPrinter: Turn on explicit any printing for everything and remove the option to disable it

This commit is contained in:
Anthony Latsis
2023-05-05 03:18:02 +03:00
parent 01086bc8b5
commit 7f6d3bcd41
85 changed files with 1258 additions and 1255 deletions

View File

@@ -74,7 +74,7 @@ func nonOptionalError(completion: @escaping (String, Error) -> Void) { }
// ASYNC-NONOPTIONALERROR-NEXT: completion(result.0, result.1)
// ASYNC-NONOPTIONALERROR-NEXT: }
// ASYNC-NONOPTIONALERROR-NEXT: }
// ASYNC-NONOPTIONALERROR: func nonOptionalError() async -> (String, Error) { }
// ASYNC-NONOPTIONALERROR: func nonOptionalError() async -> (String, any Error) { }
// RUN: %refactor-check-compiles -add-async-alternative -dump-text -source-filename %s -pos=%(line+1):1 | %FileCheck -check-prefix=ASYNC-NOPARAMS %s
func noParams(completion: @escaping () -> Void) { }
@@ -275,7 +275,7 @@ func mixedError(_ completion: @escaping (String?, Int, Error) -> Void) { }
// MIXED-ERROR-NEXT: completion(result.0, result.1, result.2)
// MIXED-ERROR-NEXT: }
// MIXED-ERROR-NEXT: }
// MIXED-ERROR: func mixedError() async -> (String?, Int, Error) { }
// MIXED-ERROR: func mixedError() async -> (String?, Int, any Error) { }
// RUN: %refactor-check-compiles -add-async-alternative -dump-text -source-filename %s -pos=%(line+1):1 | %FileCheck -check-prefix=GENERIC %s
func generic<T, R>(completion: @escaping (T, R) -> Void) { }