Skip to content

Erasure: actually emit bridges #448

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
Apr 1, 2015

Conversation

smarter
Copy link
Member

@smarter smarter commented Mar 31, 2015

Review by @DarkDimius

Example to play at home:

trait Reporter[T] {
  def report(x: T): Unit
}
class Example extends Reporter[Int] {
  override def report(x: Int) =
    println(x + 1)
}

Without this patch, no bridge is actually emitted.

DarkDimius added a commit that referenced this pull request Apr 1, 2015
@DarkDimius DarkDimius merged commit 668890c into scala:master Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants