Inline Variable: Show error message on attempt to inline unused declaration

This commit is contained in:
Alexey Sedunov
2015-12-07 14:04:15 +03:00
parent 5c88a1c63e
commit e82e4bcfc8
3 changed files with 17 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
// ERROR: Variable 'a' is never used
fun foo() {
val <caret>a = 1 + 2
}