mirror of
https://github.com/github/codeql.git
synced 2026-07-11 22:45:33 +02:00
7 lines
221 B
TypeScript
7 lines
221 B
TypeScript
// BAD: Using 'constructor' in an interface creates a method, not a constructor signature
|
|
interface Point {
|
|
x: number;
|
|
y: number;
|
|
constructor(x: number, y: number); // This is just a method named "constructor"
|
|
}
|