Implement parsing, AST, and conformance checking for associated types

in protocols, e.g.,

  protocol Range {
    typealias Element
    func getAndAdvance() -> Element
  }



Swift SVN r1941
This commit is contained in:
Doug Gregor
2012-05-22 21:45:58 +00:00
parent 03a0704ca0
commit d37602629e
14 changed files with 195 additions and 27 deletions

View File

@@ -39,6 +39,7 @@ bool Parser::checkFullyTyped(Type type) {
case TypeKind::MetaType:
case TypeKind::Module:
case TypeKind::UnstructuredDependent:
case TypeKind::Archetype:
return false;
case TypeKind::Paren: