Skip to content

anonymous given parse error #6864

Closed
Closed
@bishabosha

Description

@bishabosha

minimized code

trait Foo
trait Bar

given as Foo 
given as Bar
//    ^
//    not found: type as

trait C
trait Baz[A]

given as C
given [A] as Baz[A]
//    ^
//    an identifier expected, but '[' found

expectation

These should parse and are fixed by adding brackets to the above given, e.g. given as Foo {} or a newline in between.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions