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,516
  • 7
  • 60
  • 111

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
  • 20,246
  • 4
  • 37
  • 56