Skip to content

Commit d3741a9

Browse files
Kordyjansmarter
andauthored
Apply suggestions from code review for bean properties accessors
Co-authored-by: Guillaume Martres <[email protected]>
1 parent 9f08c03 commit d3741a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class TreeUnpickler(reader: TastyReader,
590590
val isScala2MacroDefinedInScala3 = flags.is(Macro, butNot = Inline) && flags.is(Erased)
591591
ctx.owner match {
592592
case cls: ClassSymbol if (!isScala2MacroDefinedInScala3 || cls == defn.StringContextClass) && !isSyntheticBeanAccessor =>
593-
// Enter all members of classes that are not Scala 2 macros or synthetic accessors.
593+
// Enter all members of classes that are not Scala 2 macros or synthetic bean accessors.
594594
//
595595
// For `StringContext`, enter `s`, `f` and `raw`
596596
// These definitions will be entered when defined in Scala 2. It is fine to enter them

compiler/src/dotty/tools/dotc/transform/BeanProperties.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BeanProperties(thisPhase: DenotTransformer):
4545
val meth = newSymbol(
4646
owner,
4747
name = prefixedName("set", valDef.name),
48-
flags = Method | Permanent | Synthetic,
48+
flags = Method | Synthetic,
4949
info = MethodType(valDef.name :: Nil, valDef.denot.info :: Nil, defn.UnitType),
5050
coord = annot.tree.span
5151
).enteredAfter(thisPhase).asTerm

0 commit comments

Comments
 (0)