Skip to content

Commit 29a350f

Browse files
committed
Address review
1 parent 59e22a2 commit 29a350f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)