mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
548 B
TypeScript
24 lines
548 B
TypeScript
//// [tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts] ////
|
|
|
|
//// [classWithTwoConstructorDefinitions.ts]
|
|
class C {
|
|
constructor() { } // error
|
|
constructor(x) { } // error
|
|
}
|
|
|
|
class D<T> {
|
|
constructor(x: T) { } // error
|
|
constructor(x: T, y: T) { } // error
|
|
}
|
|
|
|
//// [classWithTwoConstructorDefinitions.js]
|
|
"use strict";
|
|
class C {
|
|
constructor() { } // error
|
|
constructor(x) { } // error
|
|
}
|
|
class D {
|
|
constructor(x) { } // error
|
|
constructor(x, y) { } // error
|
|
}
|