Check lambda parameter for name shadowing

#KT-5160 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-17 10:40:41 +03:00
parent 708bfdbd5f
commit 32f609ceee
15 changed files with 61 additions and 19 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
inline fun foo(f: () -> Unit) {
val ff = { f: () -> Unit ->
val ff = { <!NAME_SHADOWING!>f<!>: () -> Unit ->
f.invoke()
}
ff(<!USAGE_IS_NOT_INLINABLE!>f<!>)