Skip to content

Commit 42fbd51

Browse files
authored
Fix compile error on swift-5.2-branch
1 parent aacc052 commit 42fbd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ resolveTopLevelIdentTypeComponent(TypeResolution resolution,
13581358
// If we found nothing, complain and give ourselves a chance to recover.
13591359
if (current.isNull()) {
13601360
// Dynamic 'Self' in the result type of a function body.
1361-
if (id.isSimpleName(ctx.Id_Self)) {
1361+
if (id == ctx.Id_Self) {
13621362
if (auto *typeDC = DC->getInnermostTypeContext()) {
13631363
// FIXME: The passed-in TypeRepr should get 'typechecked' as well.
13641364
// The issue is though that ComponentIdentTypeRepr only accepts a ValueDecl

0 commit comments

Comments
 (0)