Control-Flow Analysis: Reuse pseudo-value information for unused expression analysis
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
package d
|
||||
|
||||
trait A<T>
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun test(a: Any) {
|
||||
when (a)<!SYNTAX!><!>
|
||||
when (<!UNUSED_EXPRESSION!>a<!>)<!SYNTAX!><!>
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
package d
|
||||
|
||||
fun foo(a : IntArray) {
|
||||
|
||||
Reference in New Issue
Block a user