0

There is a question about invoking scala in scala but I want to do it in java.

How does this line translate to java?

val run = new g.Run  
zcaudate
  • 13,998
  • 7
  • 64
  • 124

1 Answers1

2

Assuming that g: G and that new G is the same as new G() (no implicit parameters) then I guess something like:

final G.Run run = g.new Run();

(I expect path dependent types to degenerate into nested classes)?

Mateusz Kubuszok
  • 24,995
  • 4
  • 42
  • 64