Skip to content

Fix #8101: Change partially-augmented signalling #8116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ class AugmentScala2Traits extends MiniPhase with IdentityDenotTransformer { this
sym.ensureNotPrivate.installAfter(thisPhase)
}
mixin.setFlag(Scala2xPartiallyAugmented)
mixin.transformAfter(thisPhase, d => { d.setFlag(Scala2xPartiallyAugmented); d })
}
}
3 changes: 3 additions & 0 deletions tests/run/i8101/Foo.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trait Foo {
def f: String = ???
}
3 changes: 3 additions & 0 deletions tests/run/i8101/JavaFoo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public abstract class JavaFoo {
public abstract int read();
}
6 changes: 6 additions & 0 deletions tests/run/i8101/Test.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Bar extends JavaFoo with Foo {
def read(): Int = ???
}

@main def Test =
val stdout = new Bar