We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e215d2c + 4c13c95 commit 5e47774Copy full SHA for 5e47774
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -904,7 +904,7 @@ object desugar {
904
else cpy.DefDef(mdef)(
905
tparams = tparams ++ mdef.tparams,
906
vparamss = leadingParams :: givenParamss ::: mdef.vparamss
907
- ).withFlags(Extension)
+ ).withMods(mdef.mods | Extension)
908
case mdef: Import =>
909
mdef
910
case mdef =>
tests/neg/i7529.scala
@@ -0,0 +1,4 @@
1
+given fooOps: [A](a: A) with
2
+
3
+ @nonsense // error: not found: nonsense
4
+ def foo = ???
0 commit comments