[Clang importer] Infer get-only properties and static properties.

Expands support for inference of computed properties, whether instance
or static, to include get-only. Adds test cases for both inference and
manual annotation for static computed properties.
This commit is contained in:
Michael Ilseman
2016-03-07 16:51:34 -08:00
parent c39aebce24
commit 73f7fd2eb6
6 changed files with 34 additions and 8 deletions

View File

@@ -2743,7 +2743,8 @@ namespace {
return nullptr;
}
assert(foundAccessor && "Didn't find the original accessor?");
assert(foundAccessor && "Didn't find the original accessor? "
"Try clearing your module cache");
// If there is no getter, there's nothing we can do.
if (!getter) return nullptr;