Skip to content

Commit c710950

Browse files
committed
[SIL] Remove check preventing static keypaths in SIL.
1 parent 0f3ac3e commit c710950

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SIL/IR/SIL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ bool AbstractStorageDecl::exportsPropertyDescriptor() const {
361361
}
362362
}
363363
}
364-
365-
// TODO: Global and static properties ought to eventually be referenceable
366-
// as key paths from () or T.Type too.
367-
if (!getDeclContext()->isTypeContext() || isStatic())
364+
365+
// TODO: Global properties ought to eventually be referenceable
366+
// as key paths from ().
367+
if (!getDeclContext()->isTypeContext())
368368
return false;
369369

370370
// Protocol requirements do not need property descriptors.

0 commit comments

Comments
 (0)