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 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
Copy link
Author

scabug commented Apr 23, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3343?orig=1
Reporter: @adriaanm

@scabug
Copy link
Author

scabug commented Jun 19, 2011

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

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

No branches or pull requests

2 participants