Is there any language construct in scala that can assure all cases of the pattern matching has bean handled?

前端 未结 0 600
谎友^
谎友^ 2020-12-29 04:27

Suppose we have a trait with 3 subcase classes. when we match this trait with two of them and forgot to check the third one, probably, we do not notice it during compile-tim

相关标签:
回答
  • 消灭零回复
提交回复
热议问题