You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dotc -version
Dotty compiler version 0.7.0-RC1--Copyright2002-2018, LAMP/EPFL
$ tree ./
./├──C.scala
└── myexample
├──A.class├──A.java
├──B$C.class├──B.class└──B.java
$ dotc -explain -classpath ./C.scala
exception caught when loading classC: java.lang.UnsupportedOperationException:classdotty.tools.dotc.core.SymDenotations$NoCompleter.complete
exception caught when loading classB: dotty.tools.dotc.core.Types$CyclicReference: cyclic reference involving module classB$-- [E046] SyntaxError:C.scala:4:9--------------------------------------------4|valb:B=newB()
|^| cyclic reference involving objectBExplanation===========objectB is declared aspart of a cycle which makes it impossible for the
compiler to decide upon B$'stype.
-- [E006] UnboundIdentifierError:C.scala:4:17-------------------------------4|valb:B=newB()
|^| not found: typeBExplanation===========The identifier for `type B` is not bound, that is,
no declaration forthis identifier can be found.
That can happen for instance ifB or its declaration has either been
misspelt, or if you're forgetting an import
two errors found
Is there a way to successed compile without modify java code?
and then is this a bug?
The text was updated successfully, but these errors were encountered:
Thank you for the minimal test case! Yes, this is a bug in the Java classfile parser, unfortunately there's no way to workaround this without changing the Java code.
I want to use Java Library from Dotty code.
but particular code is touch off compile error.
this is problem code.
They're compiled by Java8.
This is the code of Dotty referencing them.
This become compile error. dotc0.7.0-RC1.
Is there a way to successed compile without modify java code?
and then is this a bug?
The text was updated successfully, but these errors were encountered: