Warning generation on non-exhaustive whens over enums + a set of tests + fixed test #KT-6227 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-05-28 15:28:13 +03:00
parent 969993bd09
commit de12771c0f
13 changed files with 318 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
//FILE: foo.kt
fun main(args: Array<String>) {
val c: Type
when (<!UNINITIALIZED_VARIABLE, UNUSED_EXPRESSION!>c<!>) {
<!NON_EXHAUSTIVE_WHEN!>when<!> (<!UNINITIALIZED_VARIABLE, UNUSED_EXPRESSION!>c<!>) {
}
}