12 lines
333 B
Plaintext
12 lines
333 B
Plaintext
==== tests/cases/compiler/staticPrototypeProperty.ts (2 errors) ====
|
|
class C {
|
|
static prototype() { }
|
|
~~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'prototype'.
|
|
}
|
|
|
|
class C2 {
|
|
static prototype;
|
|
~~~~~~~~~
|
|
!!! error TS2300: Duplicate identifier 'prototype'.
|
|
} |