Skip to content

Commit e9bc882

Browse files
committed
Always keep annotations on value parameters
1 parent 2ee8adf commit e9bc882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ object desugar {
388388
}
389389
private def toDefParam(vparam: ValDef, keepAnnotations: Boolean): ValDef = {
390390
var mods = vparam.rawMods
391-
if (!keepAnnotations) mods = mods.withAnnotations(Nil)
391+
//if (!keepAnnotations) mods = mods.withAnnotations(Nil)
392392
vparam.withMods(mods & (GivenOrImplicit | Erased) | Param)
393393
}
394394

0 commit comments

Comments
 (0)