diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2014-10-10 09:02:34 +0200 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-10-24 15:23:39 +0200 |
commit | f8d1a9ff38cc0c0ce7279ca9169022eab51d6b60 (patch) | |
tree | fd073aec07c313f53333bd7baebe619de0f5d5f9 /src | |
parent | 2b5df373638d08204b71258928289f6b39e25d5f (diff) | |
download | scala-f8d1a9ff38cc0c0ce7279ca9169022eab51d6b60.tar.gz scala-f8d1a9ff38cc0c0ce7279ca9169022eab51d6b60.tar.bz2 scala-f8d1a9ff38cc0c0ce7279ca9169022eab51d6b60.zip |
SI-8875 showCode should print all class constructor modifiers.
showCode used to print nothing when the only modifier was a change in
visibility scope (i.e. no flags but privateWithin is set).
Diffstat (limited to 'src')
-rw-r--r-- | src/reflect/scala/reflect/internal/Printers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/Printers.scala b/src/reflect/scala/reflect/internal/Printers.scala index 2ce861898f..c4953b2c1f 100644 --- a/src/reflect/scala/reflect/internal/Printers.scala +++ b/src/reflect/scala/reflect/internal/Printers.scala @@ -761,7 +761,7 @@ trait Printers extends api.Printers { self: SymbolTable => val build.SyntacticClassDef(_, _, _, ctorMods, vparamss, earlyDefs, parents, selfType, body) = cl // constructor's modifier - if (ctorMods.hasFlag(AccessFlags)) { + if (ctorMods.hasFlag(AccessFlags) || ctorMods.hasAccessBoundary) { print(" ") printModifiers(ctorMods, primaryCtorParam = false) } |