Skip to content

Commit 568549f

Browse files
committed
Update comment
1 parent 1b224bd commit 568549f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/Sema/MiscDiagnostics.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,9 +1285,12 @@ static void diagSyntacticUseRestrictions(const Expr *E, const DeclContext *DC,
12851285
/// Return true if this is a 'nil' literal. This looks
12861286
/// like this if the type is Optional<T>:
12871287
///
1288-
/// (dot_syntax_call_expr implicit type='Int?'
1289-
/// (declref_expr implicit decl=Optional.none)
1290-
/// (type_expr type=Int?))
1288+
/// (dot_syntax_call_expr type='String?'
1289+
/// (declref_expr type='(Optional<String>.Type) -> Optional<String>'
1290+
/// decl=Swift.(file).Optional.none function_ref=unapplied)
1291+
/// (argument_list implicit
1292+
/// (argument
1293+
/// (type_expr implicit type='String?.Type' typerepr='String?'))))
12911294
///
12921295
/// Or like this if it is any other ExpressibleByNilLiteral type:
12931296
///

0 commit comments

Comments
 (0)