added specializing error "Variable initializer is redundant" for unused-vars analysis
This commit is contained in:
@@ -11,7 +11,7 @@ class C() {
|
||||
}
|
||||
|
||||
fun f(): Unit {
|
||||
var <warning>x</warning>: Int? = 1
|
||||
var x: Int? = <warning>1</warning>
|
||||
x = 1
|
||||
x <error>+</error> 1
|
||||
x <error>plus</error> 1
|
||||
|
||||
@@ -13,7 +13,7 @@ fun bbb() {
|
||||
return <error>1</error>
|
||||
}
|
||||
|
||||
fun foo(expr: StringBuilder): Int {
|
||||
fun foo(<warning>expr</warning>: StringBuilder): Int {
|
||||
val c = 'a'
|
||||
when(c) {
|
||||
0.chr => throw Exception("zero")
|
||||
|
||||
@@ -135,7 +135,7 @@ fun tf() : Int {
|
||||
<error>return 1</error>
|
||||
}
|
||||
|
||||
fun failtest(a : Int) : Int {
|
||||
fun failtest(<warning>a</warning> : Int) : Int {
|
||||
if (fail() || <error>true</error>) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user