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:
1171
1171
}
1172
1172
1173
1173
/** 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
1174
1179
*
1175
1180
* @param scrutinee The abstract value of the scrutinee.
1176
1181
* @param cases The cases to match.
@@ -1348,7 +1353,7 @@ object Objects:
1348
1353
1349
1354
1350
1355
cases.map(evalCase).join
1351
-
1356
+ end patternMatch
1352
1357
1353
1358
/** Handle semantics of leaf nodes
1354
1359
*
You can’t perform that action at this time.
0 commit comments