Skip to content

Commit ce093cb

Browse files
committed
Report more warnings for pattern match
1 parent 473e765 commit ce093cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ object Objects:
11091109

11101110
case Match(selector, cases) =>
11111111
eval(selector, thisV, klass)
1112-
evalExprs(cases.map(_.body), thisV, klass).join
1112+
// TODO: handle pattern match properly
1113+
report.warning("[initChecker] Pattern match is skipped. Trace:\n" + Trace.show, expr)
1114+
Bottom
11131115

11141116
case Return(expr, from) =>
11151117
Returns.handle(from.symbol, eval(expr, thisV, klass))

0 commit comments

Comments
 (0)