File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -497,8 +497,7 @@ extension (sym: Symbol)
497
497
* @use-annotated term parameter that contains `sym` in its deep capture set.
498
498
*/
499
499
def isUseParam (using Context ): Boolean =
500
- sym.hasAnnotation(defn.UseAnnot )
501
- || sym.info.hasAnnotation(defn.UseAnnot )
500
+ sym.info.hasAnnotation(defn.UseAnnot )
502
501
|| sym.is(TypeParam )
503
502
&& sym.owner.rawParamss.nestedExists: param =>
504
503
param.is(TermParam ) && param.hasAnnotation(defn.UseAnnot )
@@ -508,8 +507,7 @@ extension (sym: Symbol)
508
507
509
508
/** `sym` or its info is annotated with `@consume`. */
510
509
def isConsumeParam (using Context ): Boolean =
511
- sym.hasAnnotation(defn.ConsumeAnnot )
512
- || sym.info.hasAnnotation(defn.ConsumeAnnot )
510
+ sym.info.hasAnnotation(defn.ConsumeAnnot )
513
511
514
512
def isUpdateMethod (using Context ): Boolean =
515
513
sym.isAllOf(Mutable | Method , butNot = Accessor )
You can’t perform that action at this time.
0 commit comments