Instantly share code, notes, and snippets.

Embed
What would you like to do?
The most epic, uninformative, confusing Scala type error I've ever seen
[error] /Users/pchiusano/Dropbox/projects/scalaz-stream/src/main/scala/scalaz/stream/TypeAligned.scala:190: type mismatch;
[error] found : Q[[x(in type f), y(in type f)]typealigned.CQ[Q,C,x(in type f),y(in type f)],x(in method apply),b]
[error] required: Q[[x(in type f), y(in type f)]typealigned.CQ[Q,C,x(in type f),y(in type f)],y(in method apply),b]
[error] val tl = linkAll[C,y,b](t.value)
@pchiusano

This comment has been minimized.

Show comment
Hide comment
@pchiusano

pchiusano Jul 16, 2014

Fixed by removing [C,y,b] annotation!

Owner

pchiusano commented Jul 16, 2014

Fixed by removing [C,y,b] annotation!

@mentalisttraceur

This comment has been minimized.

Show comment
Hide comment
@mentalisttraceur

mentalisttraceur Aug 21, 2018

Having error messages this non-obvious is abusive.

image

(I didn't actually report, just thought the wording in the report prompt was amusingly fitting.)

mentalisttraceur commented Aug 21, 2018

Having error messages this non-obvious is abusive.

image

(I didn't actually report, just thought the wording in the report prompt was amusingly fitting.)

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