[FE 1.0] Report warning on non-exhaustive when statements only after 1.6
^KT-47709
This commit is contained in:
committed by
teamcityserver
parent
865ad3698b
commit
a710a8d10f
+2
-1
@@ -1,5 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
//FILE: foo.kt
|
||||
// LANGUAGE: +WarnAboutNonExhaustiveWhenOnAlgebraicTypes
|
||||
// FILE: foo.kt
|
||||
fun main() {
|
||||
val c: Type
|
||||
<!NON_EXHAUSTIVE_WHEN_STATEMENT!>when<!> (<!UNINITIALIZED_VARIABLE!>c<!>) {
|
||||
|
||||
Reference in New Issue
Block a user