Skip to content

Stream: deviation in typing partial function application #941

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

Closed
DarkDimius opened this issue Nov 9, 2015 · 0 comments
Closed

Stream: deviation in typing partial function application #941

DarkDimius opened this issue Nov 9, 2015 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

dotc ./scala-scala/src/library/scala/collection/immutable/Stream.scala

./scala-scala/src/library/scala/collection/immutable/Stream.scala:1103: error: covariant type A occurs in contravariant position in type => scala.collection.immutable.Stream[A] of value st
  class LazyCell(st: => Stream[A]) {
                   ^
./scala-scala/src/library/scala/collection/immutable/Stream.scala:1222: error: missing argument for parameter n of method apply: (n: Int)A
            tlVal = tlGen()
                         ^
DarkDimius added a commit to dotty-staging/dotty that referenced this issue Nov 9, 2015
DarkDimius added a commit to dotty-staging/dotty that referenced this issue Nov 10, 2015
@odersky odersky mentioned this issue Nov 16, 2015
odersky added a commit that referenced this issue Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants