Bugfixes with properties of generic types.

Swift SVN r2620
This commit is contained in:
John McCall
2012-08-13 09:03:51 +00:00
parent 17027b8d8e
commit e64342b29a
3 changed files with 16 additions and 16 deletions

View File

@@ -219,12 +219,12 @@ namespace {
bool visitBoundGenericType(BoundGenericType *origTy,
BoundGenericType *substTy) {
assert(origTy->getDecl() == substTy->getDecl());
if (origTy->hasReferenceSemantics())
return false;
// Not really sure what to do here?
IGM.unimplemented(SourceLoc(),
"testing differ-by-abstraction for bound generic value types");
// Bound generic types with reference semantics will never
// differ by abstraction. Bound generic types with value
// semantics might someday, if we want things like Optional<T>
// to have an efficient representation. For now, though, they
// don't.
return false;
}