Merge pull request #27639 from theblixguy/fix/sr-11298-third-times-a-charm

[Typechecker] Reapply fix for SR-11298
This commit is contained in:
Suyash Srijan
2019-10-16 00:05:18 +01:00
committed by GitHub
8 changed files with 240 additions and 28 deletions

View File

@@ -261,7 +261,13 @@ public:
/// Returns the kind of context this is.
DeclContextKind getContextKind() const;
/// Returns whether this context has value semantics.
bool hasValueSemantics() const;
/// Returns whether this context is an extension constrained to a class type.
bool isClassConstrainedProtocolExtension() const;
/// Determines whether this context is itself a local scope in a
/// code block. A context that appears in such a scope, like a
/// local type declaration, does not itself become a local context.