blob: bd4aa8cc5f5555d8513c400ac074f46dcd0402ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package hello
import scala.scalajs.js
trait MyTrait {
val x = 5
def foo(y: Int) = x
}
object world extends js.JSApp with MyTrait {
def main(): Unit = {
println("hello dotty.js!")
println(foo(4))
}
}
|