The Wayback Machine - https://web.archive.org/web/20200830020826/https://github.com/topics/scala3
Skip to content
#

scala3

Here are 18 public repositories matching this topic...

michelou
michelou commented Jul 25, 2020

Minimized code

trait CLibrary {
  @native
  def foo(x: Int): Unit
}

object I9432 {
  def main(args: Array[String]): Unit = {
    new CLibrary {
      override def foo(x: Int): Unit = println(x)
    }.foo(1)
  }
}

Output

$ java -version
openjdk version "11.0.8" 2020-07-14

$ C:\opt\dotty-0.26.0-RC1\bin\dotc.bat -deprecation -feature -d target\c

Improve this page

Add a description, image, and links to the scala3 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the scala3 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.