Skip to content

Instantly share code, notes, and snippets.

@runarorama
Created September 11, 2012 16:47
Show Gist options
  • Save runarorama/3699765 to your computer and use it in GitHub Desktop.
Save runarorama/3699765 to your computer and use it in GitHub Desktop.
Extremely helpful error message
[error] /Users/runar/work/Reporting/src/main/scala/com/clarifi/reporting/relational/Rel.scala:191: ambiguous implicit values:
[error] both object TableNameOrder in package reporting of type object com.clarifi.reporting.package.TableNameOrder
[error] and object TableNameOrder in package reporting of type object com.clarifi.reporting.package.TableNameOrder
@retronym
Copy link

Try with -Yinfer-debug to help understand what's going on in the confused compiler, and hopefully to isolate a bug report.

@runarorama
Copy link
Author

The instance was declared in a package object. Moving it out of that object solved the problem.

@retronym
Copy link

Was it reproducible enough to extract a bug report? Because that's supposed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment