-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
1 parent
2b5df37
commit 037f295
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
class Foo private[foo] (bar: Bar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import reflect.runtime.universe._ | ||
|
||
object Test extends App { | ||
|
||
val name = TermName("foo") | ||
val c = q"class Foo private[$name](bar: Bar)" | ||
|
||
// this used to print: "class Foo(bar: Bar)" | ||
println(showCode(c)) | ||
|
||
} |
037f295
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job pr-scala failed for 037f295 Took 77 min. (ping @gourlaysama) (results):
To retry exactly this commit, comment "PLS REBUILD/pr-scala@037f2954f4104d8ddff2e694e248093c83719b6f" on PR 4045.
NOTE: New commits are rebuilt automatically as they appear. A forced rebuild is only necessary for transient failures.