KT-15878 Extension shadowed by member shouldn't be reported for infix/operator extensions when member is non-infix/operator

This commit is contained in:
Dmitry Petrov
2017-01-23 10:55:08 +03:00
parent 98075c17c9
commit 5021be351d
7 changed files with 32 additions and 2 deletions
@@ -1,6 +1,6 @@
// !CHECK_TYPE
infix fun Int.<!EXTENSION_SHADOWED_BY_MEMBER!>compareTo<!>(<!UNUSED_PARAMETER!>o<!>: Int) = 0
infix fun Int.compareTo(<!UNUSED_PARAMETER!>o<!>: Int) = 0
fun foo(a: Number): Int {
val result = (a as Int) compareTo <!DEBUG_INFO_SMARTCAST!>a<!>