Skip to content

List.removeAt throws TypeError, not ArgumentError #14013

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


The description of List.removeAt(int index) reads:

    Throws an ArgumentError if index is not an int.

But for lists created by new List() or new List(size), TypeError is thrown if index is not an int.

Affected test:
co19/src/LibTest/core/List/removeAt_A02_t01.dart

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-core

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions