-
Notifications
You must be signed in to change notification settings - Fork 1.1k
endless compilation (more than 500 seconds) for simple program with -Xprint-types #9517
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
Comments
Hmm, looks like this depends from compiler flags: -Xprint-types. -Xprint-types: endless without --- show error. |
(full sbt project) |
Hmm, looks like without implicit search - the same,
and main the same:
|
Minimized to a single file package x
trait CB[T]
trait M[F[_]]
object MCB extends M[CB]
given M[CB] = MCB
object Y {
def foundMF1[F[_],A](x: A)(using M[F]) : Boolean = true
}
object Main {
def main(args:Array[String]):Unit =
println(Y.foundMF1[CB,Any]({ case 1 => 10 }))
} |
|
Minimal def test():Unit = foo({ case 1 => 10 })
def foo(x: Any): Boolean = true |
It looks like we get here with an anonymous instance of |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 10, 2020
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 11, 2020
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 11, 2020
nicolasstucki
added a commit
that referenced
this issue
Aug 31, 2020
Fix #9517: Do not print contents of ErrorType on -Xprint-types
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
2 files:
X.scala:
and Main.scala
Output
Expectation
will compiles.
The text was updated successfully, but these errors were encountered: