Skip to content

REPL with JDK 14 "failure to convert Constant(true) to TypeRef..." #8688

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
unkarjedy opened this issue Apr 7, 2020 · 1 comment
Closed

Comments

@unkarjedy
Copy link
Contributor

I am trying Dotty REPL (via sbt console) with JDK 14 and get some failure message on the first input statement:

failure to convert Constant(true) to TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Byte)
Caught: dotty.tools.dotc.core.CyclicReference:  while parsing annotations in /modules/java.base/java/lang/annotation/ElementType.class
val res0: Int = 42

image

@smarter
Copy link
Member

smarter commented Apr 7, 2020

Fixed in master by #8655 (try scalaVersion := "0.24.0-bin-20200406-eff5496-NIGHTLY" to get the latest nightly).

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