Skip to content

Cons next leaks through next$access$1 #18884

Closed
@nicolasstucki

Description

@nicolasstucki

Compiler version

3.3

Minimized code

The following code compiles but should not

def test(xs: ::[Int]): List[Int] =
  xs.next$access$1

Other manifestation

This method also apears in autocompletion

Screenshot 2023-11-09 at 11 03 49

Expectation

This code should not compile.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions