Skip to content

Error at definition of Type #343

@oskoi

Description

@oskoi

I try write this:

type T = {

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions