Created
February 6, 2018 20:04
-
-
Save Logiraptor/9162d0776ab3d328669895553cdc94f0 to your computer and use it in GitHub Desktop.
Failure reproduction
This file contains hidden or 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
| export function broken1(callback: (x: any) => void, value1: string) { | |
| return callback(() => console.log(value1)) | |
| } | |
| export function broken2(callback: any, value2: string) { | |
| return callback(() => console.log(value2)) | |
| } | |
| export function working(callback: (x: () => void) => void, value3: string) { | |
| return callback(() => console.log(value3)) | |
| } |
This file contains hidden or 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
| { | |
| "dependencies": { | |
| "typescript": "^2.7.1" | |
| } | |
| } |
This file contains hidden or 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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "strict": true, | |
| "noUnusedLocals": true, | |
| "noUnusedParameters": true, | |
| "noEmit": true | |
| }, | |
| "files": [ | |
| "./main.ts" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment