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 223fe9c commit 280e097Copy full SHA for 280e097
src/compiler/scala/tools/nsc/transform/Fields.scala
@@ -91,7 +91,7 @@ abstract class Fields extends InfoTransform with ast.TreeDSL with TypingTransfor
91
// NOTE: this only considers type, filter on flags first!
92
def fieldMemoizationIn(accessorOrField: Symbol, site: Symbol) = new FieldMemoization(accessorOrField, site)
93
94
- override def transformInfo(sym: Symbol, tp: Type): Type = synthFieldsAndAccessors(tp)
+ override def transformInfo(sym: Symbol, tp: Type): Type = if (!sym.isJavaDefined) synthFieldsAndAccessors(tp) else tp
95
96
private def newTraitSetter(getter: Symbol, clazz: Symbol) = {
97
// Add setter for an immutable, memoizing getter
0 commit comments