I try write this:
but get an error:
SyntaxError: found "{", expected NamedType ~ Refinement.? | Refinement at index 9
type T = {
^
If i use scala REPL, all works fine:
scala> type T = {
| type X = Int
| def x: X
| type Y
| def y: Y
| }
defined type alias T
I try write this:
but get an error:
If i use scala REPL, all works fine: