Skip to content

Commit 87c1613

Browse files
committed
[SIL] Remove check preventing static keypaths in SIL.
1 parent 862fc4b commit 87c1613

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
@@ -360,10 +360,10 @@ bool AbstractStorageDecl::exportsPropertyDescriptor() const {
360360
}
361361
}
362362
}
363-
364-
// TODO: Global and static properties ought to eventually be referenceable
365-
// as key paths from () or T.Type too.
366-
if (!getDeclContext()->isTypeContext() || isStatic())
363+
364+
// TODO: Global properties ought to eventually be referenceable
365+
// as key paths from ().
366+
if (!getDeclContext()->isTypeContext())
367367
return false;
368368

369369
// Protocol requirements do not need property descriptors.

0 commit comments

Comments
 (0)