]> granicus.if.org Git - clang/commit
[ObjC] Fix type checking for qualified id block parameters.
authorVolodymyr Sapsai <vsapsai@apple.com>
Wed, 28 Aug 2019 00:25:06 +0000 (00:25 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Wed, 28 Aug 2019 00:25:06 +0000 (00:25 +0000)
commitbafa3c30706f5192630a7aa6c640ec19d283599a
tree3a0b692d633982e244cbb6b33070473d180ecb70
parent1f0a479997daccf6c2d42d81533e2c935d7ad841
[ObjC] Fix type checking for qualified id block parameters.

When checking if block types are compatible, we are checking for
compatibility their return types and parameters' types. As these types
have different variance, we need to check them in different order.

rdar://problem/52788423

Reviewers: erik.pilkington, arphaman

Reviewed By: arphaman

Subscribers: jkorous, dexonsmith, ributzka, cfe-commits

Differential Revision: https://reviews.llvm.org/D66831

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370130 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/SemaObjC/block-type-safety.m