mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user