Skip to content

t8764.scala: productElement typing #686

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 Jun 24, 2015 · 0 comments
Closed

t8764.scala: productElement typing #686

DarkDimius opened this issue Jun 24, 2015 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

[info] % dotc t8764.scala
[info]
[info] compiling /Users/dark/workspace/dotty/tests/partest-generated/run/t8764.scala
[info] options: -pagewidth 160 -Yno-deep-subtypes -Yno-double-bindings -Ycheck:tailrec,resolveSuper,mixin,restoreScopes -d ./tests/partest-generated/run/t8764-run.obj
[info] /Users/dark/workspace/dotty/tests/partest-generated/run/t8764.scala:12: error: type mismatch:
[info]  found   : Any
[info]  required: Int
[info] val i: Int = a.productElement(0)
[info]                              ^
[info] /Users/dark/workspace/dotty/tests/partest-generated/run/t8764.scala:19: error: type mismatch:
[info]  found   : Any
[info]  required: AnyVal
[info] Note that implicit conversions cannot be applied because they are ambiguous;
[info]  both method any2stringadd in object Predef$ and method ArrowAssoc in object Predef$ convert from Any to AnyVal
[info] val j: AnyVal = b.productElement(0)
[info]                                 ^
[info] two errors found
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