Report warning on extensions shadowed by members.
This commit is contained in:
Dmitry Petrov
2017-01-13 18:07:47 +03:00
parent ded7d5911b
commit 954204da82
62 changed files with 876 additions and 50 deletions
@@ -12,7 +12,7 @@ class A1 : java.util.ArrayList<String>() {
class B : <!DEPRECATION_ERROR!>Throwable<!>("", null, false, false)
fun Throwable.fillInStackTrace() = 1
fun Throwable.<!EXTENSION_SHADOWED_BY_MEMBER!>fillInStackTrace<!>() = 1
fun foo(x: List<String>, y: Throwable) {
x.<!DEPRECATION_ERROR!>stream<!>()