Skip to content

Commit 4d1dff9

Browse files
authored
Change switches to accept instances with primitive equality (#4303)
See dart-lang/sdk#60375 for background information. This PR changes switches to accept instances with primitive equality, rather than requiring their class to have primitive equality.
1 parent a97927e commit 4d1dff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specification/dartLangSpec.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18732,8 +18732,8 @@ \subsection{Switch}
1873218732
}
1873318733

1873418734
\LMHash{}%
18735-
It is a compile-time error if the class $C$
18736-
does not have primitive equality
18735+
It is a compile-time error if one or more of said instances of the class $C$
18736+
do not have primitive equality
1873718737
(\ref{theOperatorEqualsEquals}).
1873818738

1873918739
\rationale{%

0 commit comments

Comments
 (0)