mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement CapturingExpr. In addition to unifying the hierarchy between FuncExpr and ClosureExpr, this introduces a DeclContext for ClosureExprs. <rdar://problem/11076715>
Swift SVN r1240
This commit is contained in:
@@ -167,6 +167,8 @@ Type FuncDecl::getExtensionType() const {
|
||||
case DeclContextKind::TranslationUnit:
|
||||
case DeclContextKind::BuiltinModule:
|
||||
case DeclContextKind::FuncExpr:
|
||||
case DeclContextKind::ExplicitClosureExpr:
|
||||
case DeclContextKind::ImplicitClosureExpr:
|
||||
case DeclContextKind::OneOfType:
|
||||
return Type();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user