File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -851,8 +851,8 @@ class Definitions {
851
851
@ tu lazy val TypeBox_CAP : TypeSymbol = TypeBoxClass .requiredType(tpnme.CAP )
852
852
853
853
@ tu lazy val MatchCaseClass : ClassSymbol = requiredClass(" scala.runtime.MatchCase" )
854
- @ tu lazy val NotClass : ClassSymbol = requiredClass(" scala.util.Not " )
855
- @ tu lazy val Not_value : Symbol = NotClass .companionModule.requiredMethod(nme.value)
854
+ @ tu lazy val NotGivenClass : ClassSymbol = requiredClass(" scala.util.NotGiven " )
855
+ @ tu lazy val NotGiven_value : Symbol = NotGivenClass .companionModule.requiredMethod(nme.value)
856
856
857
857
@ tu lazy val ValueOfClass : ClassSymbol = requiredClass(" scala.ValueOf" )
858
858
Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ trait Implicits:
1072
1072
else ViewProto (wildApprox(argument.tpe.widen), wildApprox(pt))
1073
1073
// Not clear whether we need to drop the `.widen` here. All tests pass with it in place, though.
1074
1074
1075
- val isNot : Boolean = wildProto.classSymbol == defn.NotClass
1075
+ val isNotGiven : Boolean = wildProto.classSymbol == defn.NotGivenClass
1076
1076
1077
1077
/** Try to type-check implicit reference, after checking that this is not
1078
1078
* a diverging search
@@ -1201,10 +1201,10 @@ trait Implicits:
1201
1201
}
1202
1202
1203
1203
def negateIfNot (result : SearchResult ) =
1204
- if (isNot )
1204
+ if (isNotGiven )
1205
1205
result match {
1206
1206
case _ : SearchFailure =>
1207
- SearchSuccess (ref(defn.Not_value ), defn.Not_value .termRef, 0 )(
1207
+ SearchSuccess (ref(defn.NotGiven_value ), defn.NotGiven_value .termRef, 0 )(
1208
1208
ctx.typerState.fresh().setCommittable(true ),
1209
1209
ctx.gadt
1210
1210
)
@@ -1220,7 +1220,7 @@ trait Implicits:
1220
1220
|According to the new implicit resolution rules this is no longer possible;
1221
1221
|the search will fail with a global ambiguity error instead.
1222
1222
|
1223
- |Consider using the scala.util.Not class to implement similar functionality. """ ,
1223
+ |Consider using the scala.util.NotGiven class to implement similar functionality. """ ,
1224
1224
ctx.source.atSpan(span))
1225
1225
1226
1226
/** A relation that influences the order in which implicits are tried.
You can’t perform that action at this time.
0 commit comments