Fix non-exhaustive when in common stdlib

This commit is contained in:
Dmitriy Novozhilov
2021-02-25 13:11:51 +03:00
parent 4222bb9af2
commit 99c47a0487
@@ -63,4 +63,5 @@ internal fun DurationUnit.shortName(): String = when (this) {
DurationUnit.MINUTES -> "m"
DurationUnit.HOURS -> "h"
DurationUnit.DAYS -> "d"
}
else -> error("Unknown unit: $this")
}