patmatexhaust.check
来自「JAVA 语言的函数式编程扩展」· CHECK 代码 · 共 32 行
CHECK
32 行
patmatexhaust.scala:7: warning: match is not exhaustive!missing combination Baz def ma1(x:Foo) = x match { ^patmatexhaust.scala:11: warning: match is not exhaustive!missing combination Bar def ma2(x:Foo) = x match { ^patmatexhaust.scala:23: warning: match is not exhaustive!missing combination Kult Kultmissing combination Qult Qult def ma3(x:Mult) = (x,x) match { // not exhaustive ^patmatexhaust.scala:49: warning: match is not exhaustive!missing combination Gumissing combination Gp def ma4(x:Deep) = x match { // missing cases: Gu, Gp ^patmatexhaust.scala:53: warning: match is not exhaustive! def ma5(x:Deep) = x match { // Gp ^patmatexhaust.scala:70: error: unreachable code case 1 => ^5 warnings foundone error found
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?