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

confusing error message when type constructor inference infers ill-kinded type argument #3343

Closed
scabug opened this issue Apr 23, 2010 · 2 comments
Assignees

Comments

@scabug
Copy link

@scabug scabug commented Apr 23, 2010

import scala.collection.mutable.Builder
class Converter[T]
object SimpleIntConverter extends Converter[Int]

class TraversableConverter[T, Coll[X] <: Traversable[X]](converter: Converter[T], builder: Builder[T, Coll[T]]) extends Converter[Coll[T]] 

val tc: Converter[List[Int]] = new TraversableConverter(SimpleIntConverter, new ListBuffer[Int])
error: kinds of the type arguments (Int,List[X]) do not conform to the expected kinds of the type parameters (type T,type Coll) in class TraversableConverter.
List[X]'s type parameters do not match type Coll's expected parameters: class List has one type parameter, but type Coll has one

repeat 100x:
I must not infer ill-kinded types
I must not break reflexivity of numeric equality...

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Apr 23, 2010

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Jun 19, 2011

@paulp said:
I guess the bot only recognizes #3343 and not #3343. Fixed in r25110.

@scabug scabug closed this Jun 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.