Skip to content
Commit 89b928eb authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[objcmt] Check for classes that accept 'objectForKey:' (or the other selectors

that the migrator handles) but return their instances as 'id', resulting
in the compiler resolving 'objectForKey:' as the method from NSDictionary.

When checking if we can convert to subscripting syntax, check whether
the receiver is a result of a class method from a hardcoded list of
such classes. In such a case return the specific class as the interface
of the receiver.

llvm-svn: 159788
parent b2af512c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment