File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1171,6 +1171,11 @@ object Objects:
11711171 }
11721172
11731173 /** Evaluate the cases against the scrutinee value.
1174+ *
1175+ * It returns the scrutinee in most cases. The main effect of the function is for its side effects of adding bindings
1176+ * to the environment.
1177+ *
1178+ * See https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html
11741179 *
11751180 * @param scrutinee The abstract value of the scrutinee.
11761181 * @param cases The cases to match.
@@ -1348,7 +1353,7 @@ object Objects:
13481353
13491354
13501355 cases.map(evalCase).join
1351-
1356+ end patternMatch
13521357
13531358 /** Handle semantics of leaf nodes
13541359 *
You can’t perform that action at this time.
0 commit comments