Ban Placeholders in More Places

Fix a regression introduced in #39627 where placeholders at the "top level" were mistaken for "placeholders in top level code".
This commit is contained in:
Robert Widmann
2022-02-02 12:39:56 -08:00
parent c969f5f192
commit 74bb62b562
5 changed files with 58 additions and 14 deletions

View File

@@ -1138,6 +1138,7 @@ func badTypes() {
func unresolvedTypeExistential() -> Bool {
return (Int.self==_{})
// expected-error@-1 {{type of expression is ambiguous without more context}}
// expected-error@-2 {{type placeholder not allowed here}}
}
do {