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

The RedBlackSetSpec #6

Open
alf239 opened this issue Aug 28, 2015 · 1 comment
Open

The RedBlackSetSpec #6

alf239 opened this issue Aug 28, 2015 · 1 comment

Comments

@alf239
Copy link
Contributor

alf239 commented Aug 28, 2015

SetSpec's val set has a type of Set[E, S]; what I would like to see is something more like SES <: Set[E, S] — but this breaks compilation somehow.

The offending code is:

object RedBlackSetSpec {
  val set = new RedBlackSet[Int]
}

class RedBlackSetSpec
  extends SetSpec(RedBlackSetSpec.set)
  with IntElements {

  val set = RedBlackSetSpec.set

  // ...
}

the ideal code would be something along the lines of,

class RedBlackSetSpec
  extends SetSpec(new RedBlackSet[Int])
  with IntElements {

  // ...
}
@alf239
Copy link
Contributor Author

alf239 commented Aug 28, 2015

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

1 participant