Skip to content

Commit 79fc91d

Browse files
committed
add strictEqualityPatternMatching in scala.language.experimental
1 parent 51b34cb commit 79fc91d

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)