fix "Can be replaced with comparison" false positive if extension method called 'equals' is used

Fixes #KT-13480
This commit is contained in:
Kirill Rakhman
2016-08-20 14:11:57 +02:00
parent 45b5157ecf
commit e6e46809de
3 changed files with 26 additions and 3 deletions
@@ -0,0 +1,11 @@
// IS_APPLICABLE: false
class Foo
fun Foo?.equals(other: Foo?) = true
fun bar(f1: Foo?, f2: Foo?) {
if (f1.equals<caret>(f2)) {
}
}