File tree 1 file changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/ast 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1911,15 +1911,12 @@ object desugar {
1911
1911
/** Make erased function definitions use only ValDefs */
1912
1912
def makeErasedFunctionValDefs (tree : Function , pt : Type )(using Context ): Function = {
1913
1913
val Function (args, result) = tree
1914
- val flags = tree match
1915
- case tree : FunctionWithMods => tree.mods.flags
1916
- case _ => EmptyFlags
1917
1914
args match {
1918
1915
case (_ : ValDef ) :: _ => tree // ValDef case can be easily handled
1919
1916
case _ if ! ctx.mode.is(Mode .Type ) => tree
1920
1917
case _ =>
1921
1918
val applyVParams = args.zipWithIndex.map {
1922
- case (p, n) => makeSyntheticParameter(n + 1 , p).withAddedFlags(flags)
1919
+ case (p, n) => makeSyntheticParameter(n + 1 , p)
1923
1920
}
1924
1921
tree match
1925
1922
case tree : FunctionWithMods =>
You can’t perform that action at this time.
0 commit comments