Skip to content

Instantly share code, notes, and snippets.

@pchiusano
Created July 16, 2014 15:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pchiusano/57edebe68e1c621360ca to your computer and use it in GitHub Desktop.
Save pchiusano/57edebe68e1c621360ca to your computer and use it in GitHub Desktop.
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
Copy link
Author

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

@mentalisttraceur
Copy link

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