Specifically mention version mismatches for non-subclassable classes.

That is, if a Swift 4 class has members that cannot be loaded in Swift
3 mode and that's why it can't be subclassed, mention that in the
diagnostic.
This commit is contained in:
Jordan Rose
2017-05-10 14:17:09 -07:00
parent 8a314d9440
commit 48fca56342
9 changed files with 50 additions and 12 deletions

View File

@@ -1925,3 +1925,7 @@ ClassDecl *SerializedASTFile::getMainClass() const {
assert(hasEntryPoint());
return cast_or_null<ClassDecl>(File.getDecl(File.Bits.EntryPointDeclID));
}
const version::Version &SerializedASTFile::getLanguageVersionBuiltWith() const {
return File.CompatibilityVersion;
}