Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a82ddbd

Browse files
add strictEqualityPatternMatching in scala.language.experimental
1 parent 51b34cb commit a82ddbd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎library/src/scala/language.scala‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ object language {
243243
@compileTimeOnly("`erasedDefinitions` can only be used at compile time in import statements")
244244
object erasedDefinitions
245245

246+
/** Experimental support for relaxed CanEqual checks for ADT pattern matching
247+
*
248+
* @see [[https://github.com/scala/improvement-proposals/pull/97]]
249+
*/
250+
@compileTimeOnly("`strictEqualityPatternMatching` can only be used at compile time in import statements")
251+
object strictEqualityPatternMatching
252+
246253
/** Experimental support for using indentation for arguments
247254
*/
248255
@compileTimeOnly("`fewerBraces` can only be used at compile time in import statements")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /