Skip to content

Commit c89fd23

Browse files
authored
Merge pull request #6173 from dotty-staging/fix-synthetic-forwarder
Don't uncondtionally emit forwarders as ACC_SYNTHETIC
2 parents d96d3f6 + 6f7bf46 commit c89fd23

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MixinOps(cls: ClassSymbol, thisPhase: DenotTransformer)(implicit ctx: Cont
2222
val res = member.copy(
2323
owner = cls,
2424
name = member.name.stripScala2LocalSuffix,
25-
flags = member.flags &~ Deferred | Synthetic | Artifact | extraFlags,
25+
flags = member.flags &~ Deferred | Synthetic | extraFlags,
2626
info = cls.thisType.memberInfo(member)).enteredAfter(thisPhase).asTerm
2727
res.addAnnotations(member.annotations.filter(_.symbol != defn.TailrecAnnot))
2828
res
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.List
2+
3+
trait Foo {
4+
val x: List[String] = null
5+
}
6+
abstract class Bar extends Foo
7+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Test_2 {
2+
public void foo() {
3+
new Bar() {};
4+
}
5+
}

0 commit comments

Comments
 (0)