KTIJ-664 [SealedClassInheritorsProvider]: test fixes

This commit is contained in:
Andrei Klunnyi
2020-12-17 19:01:49 +01:00
parent 88a0fe7ec1
commit efc7ab5023
+1 -1
View File
@@ -49,7 +49,7 @@ sealed class Variant {
object Another : Variant()
}
fun nonExhaustiveSealed(v: Variant) = <error descr="[NO_ELSE_IN_WHEN] 'when' expression must be exhaustive, add necessary 'is Something', 'Another' branches or 'else' branch instead">when</error>(v) {
fun nonExhaustiveSealed(v: Variant) = <error descr="[NO_ELSE_IN_WHEN] 'when' expression must be exhaustive, add necessary 'Another', 'is Something' branches or 'else' branch instead">when</error>(v) {
Variant.Singleton -> false
}