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.
def
1 parent 211d46e commit 0f7934dCopy full SHA for 0f7934d
src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -303,7 +303,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
303
else if (flags is Mutable) "var"
304
else if (flags is Package) "package"
305
else if (flags is Module) "object"
306
- else if (sym.isSourceMethod) "def"
+ else if (sym is Method) "def"
307
else if (sym.isTerm && (!(flags is Param))) "val"
308
else ""
309
}
0 commit comments