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.
1 parent ca6b1c6 commit 70db293Copy full SHA for 70db293
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -901,7 +901,7 @@ object desugar {
901
mdef
902
}
903
else cpy.DefDef(mdef)(tparams = tparams ++ mdef.tparams, vparamss = leadingParams :: mdef.vparamss)
904
- .withFlags(Extension)
+ .withMods(mdef.mods | Extension)
905
case mdef: Import =>
906
907
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