Minor, move enum diagnostic tests, add another test

This commit is contained in:
Alexander Udalov
2013-11-12 22:03:14 +04:00
parent 76e347e530
commit 776b5d0a6e
4 changed files with 24 additions and 10 deletions
@@ -0,0 +1,9 @@
enum class E {
E1
E2
}
fun foo() {
var <!ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE!>e<!> = E.E1
e = <!UNUSED_VALUE!>E.E2<!>
}