Skip to content
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

missing trait constructor called for object extending trait compiled by dotty #114

Open
bishabosha opened this issue Oct 7, 2020 · 0 comments
Labels
bug topic:tasty/scala2 Scala 2 implementation of TASTy unpicking

Comments

@bishabosha
Copy link
Member

bishabosha commented Oct 7, 2020

// libraryDependencies += "dev.zio" % "zio_0.27" % "1.0.2"
// ThisBuild / scalaVersion := "2.13.4-bin-8891679"

import zio._
import zio.console._

object Main extends App {
  def run(args: List[String]) = putStrLn("Hello, World!").exitCode
}

The check for adding trait constructor symbol needs to be improved, it appears in #110 it is not called when it should, and here it is called when it should not

Error

(run-main-2) java.lang.NoSuchMethodError: zio.App.$init$(Lzio/App;)V
java.lang.NoSuchMethodError: zio.App.$init$(Lzio/App;)V
        at example.Main$.<clinit>(Main.scala:6)
        at example.Main.main(Main.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
@bishabosha bishabosha added bug topic:tasty/scala2 Scala 2 implementation of TASTy unpicking labels Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic:tasty/scala2 Scala 2 implementation of TASTy unpicking
Projects
None yet
Development

No branches or pull requests

1 participant