Skip to content
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

print type with symbolic name and two arguments as infix #4700

Closed
scabug opened this issue Jun 16, 2011 · 2 comments
Closed

print type with symbolic name and two arguments as infix #4700

scabug opened this issue Jun 16, 2011 · 2 comments

Comments

@scabug
Copy link

scabug commented Jun 16, 2011

When it is unambiguous, a type with a symbolic name and two arguments should be printed as infix. This would add to the readability of errors related to HLists.

scala> trait :+:[A,B]                      
defined trait $colon$plus$colon

scala> implicitly[Int :+: Double]          
<console>:7: error: could not find implicit value for parameter e: :+:[Int,Double]
       implicitly[Int :+: Double]
                 ^

The error message would be more readable (especially for nested types) if it said:

error: could not find implicit value for parameter e: Int :+: Double
@scabug
Copy link
Author

scabug commented Jun 16, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4700?orig=1
Reporter: @harrah
Assignee: @allisonhb

@scabug
Copy link
Author

scabug commented Feb 16, 2017

@adriaanm said:
scala/scala#5589

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

No branches or pull requests

1 participant