Skip to content

Add ambiguous reference incompatibility #100

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

Closed
adpi2 opened this issue Nov 13, 2020 · 1 comment
Closed

Add ambiguous reference incompatibility #100

adpi2 opened this issue Nov 13, 2020 · 1 comment

Comments

@adpi2
Copy link
Member

adpi2 commented Nov 13, 2020

Found in https://github.com/47degrees/fetch

abstract class Document {
  def ::(hd: Document): Document  = DocCons(hd, this)
  
  def foo(bar: List[String]): String = bar match {
    case head :: tail => head
  }
}
@adpi2
Copy link
Member Author

adpi2 commented Feb 16, 2021

Actually this compatibility is a bug and is going to be fixed in the compiler itself: scala/scala3#11421 (comment)

@adpi2 adpi2 closed this as completed Feb 16, 2021
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

No branches or pull requests

1 participant