File tree 5 files changed +10
-4
lines changed
compiler/src/dotty/tools/dotc
docs/docs/reference/changed-features
library/src-bootstrapped/scala
5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ class Definitions {
738
738
@ tu lazy val TypeBox_CAP : TypeSymbol = TypeBoxClass .requiredType(tpnme.CAP )
739
739
740
740
@ tu lazy val MatchCaseClass : ClassSymbol = requiredClass(" scala.internal.MatchCase" )
741
- @ tu lazy val NotClass : ClassSymbol = requiredClass(" scala.implicits .Not" )
741
+ @ tu lazy val NotClass : ClassSymbol = requiredClass(" scala.util .Not" )
742
742
@ tu lazy val Not_value : Symbol = NotClass .companionModule.requiredMethod(nme.value)
743
743
744
744
@ tu lazy val ValueOfClass : ClassSymbol = requiredClass(" scala.ValueOf" )
Original file line number Diff line number Diff line change @@ -1234,7 +1234,7 @@ trait Implicits:
1234
1234
|According to the new implicit resolution rules this is no longer possible;
1235
1235
|the search will fail with a global ambiguity error instead.
1236
1236
|
1237
- |Consider using the scala.implicits .Not class to implement similar functionality. """ ,
1237
+ |Consider using the scala.util .Not class to implement similar functionality. """ ,
1238
1238
ctx.source.atSpan(span))
1239
1239
1240
1240
/** A relation that influences the order in which implicits are tried.
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ which means that the alternative `c` would be chosen as solution!
107
107
Scala 2 ' s somewhat puzzling behavior with respect to ambiguity has been exploited to implement
108
108
the analogue of a " negated" search in implicit resolution, where a query `Q1` fails if some
109
109
other query `Q2` succeeds and `Q1` succeeds if `Q2` fails. With the new cleaned up behavior
110
- these techniques no longer work. But there is now a new special type `scala.implicits .Not`
110
+ these techniques no longer work. But there is now a new special type `scala.util .Not`
111
111
which implements negation directly. For any query type `Q` : `Not[Q]` succeeds if and only if
112
112
the implicit search for `Q` fails.
113
113
Original file line number Diff line number Diff line change
1
+ package scala
2
+
3
+ package object implicits {
4
+ @ deprecated(" scala.implicits.Not has been renamed scala.util.Not" , " 0.27.0" )
5
+ type Not [A ] = scala.util.Not [A ]
6
+ }
Original file line number Diff line number Diff line change 1
- package scala .implicits
1
+ package scala .util
2
2
3
3
/** A special class used to implement negation in implicit search.
4
4
*
You can’t perform that action at this time.
0 commit comments