forked from OSchip/llvm-project
af65120bd3
Consider something like the following: struct X { virtual void foo(float x); }; struct Y : X { void foo(double x) override; }; The error is almost certainly that Y::foo() has the wrong signature, rather than incorrect usage of the override keyword. This patch adds an appropriate diagnostic for that case. Fixes <rdar://problem/14785106>. llvm-svn: 190109 |
||
---|---|---|
.. | ||
class.abstract | ||
class.member.lookup | ||
class.virtual | ||
p1.cpp | ||
p2.cpp |