Skip to content

Commit 280e097

Browse files
committed
pos/t9111-inliner-workaround
1 parent 223fe9c commit 280e097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/transform/Fields.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ abstract class Fields extends InfoTransform with ast.TreeDSL with TypingTransfor
9191
// NOTE: this only considers type, filter on flags first!
9292
def fieldMemoizationIn(accessorOrField: Symbol, site: Symbol) = new FieldMemoization(accessorOrField, site)
9393

94-
override def transformInfo(sym: Symbol, tp: Type): Type = synthFieldsAndAccessors(tp)
94+
override def transformInfo(sym: Symbol, tp: Type): Type = if (!sym.isJavaDefined) synthFieldsAndAccessors(tp) else tp
9595

9696
private def newTraitSetter(getter: Symbol, clazz: Symbol) = {
9797
// Add setter for an immutable, memoizing getter

0 commit comments

Comments
 (0)