File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -708,19 +708,6 @@ class CheckCaptures extends Recheck, SymTransformer:
708
708
selType
709
709
}// .showing(i"recheck sel $tree, $qualType = $result")
710
710
711
- /** Hook for massaging a function before it is applied. Copies all @use and @consume
712
- * annotations on method parameter symbols to the corresponding paramInfo types.
713
- */
714
- override def prepareFunction (funtpe : MethodType , meth : Symbol )(using Context ): MethodType =
715
- val paramInfosWithUses =
716
- funtpe.paramInfos.zipWithConserve(funtpe.paramNames): (formal, pname) =>
717
- val param = meth.paramNamed(pname)
718
- def copyAnnot (tp : Type , cls : ClassSymbol ) = param.getAnnotation(cls) match
719
- case Some (ann) if ! tp.hasAnnotation(cls) => AnnotatedType (tp, ann)
720
- case _ => tp
721
- copyAnnot(copyAnnot(formal, defn.UseAnnot ), defn.ConsumeAnnot )
722
- funtpe.derivedLambdaType(paramInfos = paramInfosWithUses)
723
-
724
711
/** Recheck applications, with special handling of unsafeAssumePure.
725
712
* More work is done in `recheckApplication`, `recheckArg` and `instantiate` below.
726
713
*/
You can’t perform that action at this time.
0 commit comments