Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

patchInPlace throws a class cast exception #407

@Ichoran

Description

@Ichoran
java.lang.ClassCastException: strawman.collection.immutable.Nil$ cannot be cast to strawman.collection.immutable.$colon$colon
strawman.collection.mutable.ListBuffer.locate(ListBuffer.scala:153)
strawman.collection.mutable.ListBuffer.patchInPlace(ListBuffer.scala:272)

The call was to ArrayBuffer.empty[Int].patch(-1, ArrayBuffer.empty[Int], -1), but this shouldn't happen regardless.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions