Skip to content

Incorrect error span on classes with both instance and static index signatures #44134

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
class Foo {
  [p: string]: any;
  static [p: string]: number;
}
error: Property 'prototype' of type 'Foo' is not assignable to string index type 'number'.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions