mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ASTPrinter: Turn on explicit any printing for everything and remove the option to disable it
This commit is contained in:
@@ -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) { }
|
||||
|
||||
Reference in New Issue
Block a user