Created
October 15, 2018 08:58
-
-
Save minajevs/806bd1dbd8d4eb171f2c7b64dd526a8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
constructor(); // Error: overload signature not compatible with impl | |
constructor(a: number | undefined) {} | |
} | |
class A { | |
constructor(); | |
constructor(a?: number) {} // this one works | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment