Skip to content

Crash: isDeclarationVisible unknown: SyntaxKind: 134 #1288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
s-panferov opened this issue Nov 27, 2014 · 5 comments
Closed

Crash: isDeclarationVisible unknown: SyntaxKind: 134 #1288

s-panferov opened this issue Nov 27, 2014 · 5 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@s-panferov
Copy link

/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:584
                throw new Error("Debug Failure. False expression: " + (message
                      ^
Error: Debug Failure. False expression: isDeclarationVisible unknown: SyntaxKind: 134
    at Object.assert (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:584:23)
    at Object.fail (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:589:19)
    at determineIfDeclarationIsVisible (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:11105:34)
    at isDeclarationVisible (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:11111:41)
    at determineIfDeclarationIsVisible (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:11098:32)
    at isDeclarationVisible (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:11111:41)
    at getIsDeclarationVisible (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:10567:22)
    at /Users/panferov/Workspace/out/TypeScript/bin/tsc.js:10556:86
    at Object.forEach (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:40:30)
    at hasVisibleDeclarations (/Users/panferov/Workspace/out/TypeScript/bin/tsc.js:10556:24)
Fatal error: TSC error

Unfortunately, my attempts to extract a minimal example was failed. I will continue my attempts, but maybe someone of you already knows what could be wrong.

tsc 05fd2e9f (master)
@s-panferov
Copy link
Author

The same code successfully compiles on tsc 1.3.

@s-panferov
Copy link
Author

Code to reproduce:

module schema {

    export function createValidator(schema: any): <T>(data: T) => T {
        return <T>(data: T) => {
            return data;
        }
    }

}

Compile with:

tsc --module 'commonjs' test1.ts -d

I think that error is somewhere near #1122

@mhegazy
Copy link
Contributor

mhegazy commented Dec 1, 2014

@s-panferov, fix should be in main, can you give it a try. thanks!

@mhegazy mhegazy closed this as completed Dec 1, 2014
@derekcicerone-zz
Copy link

Cool, looks like it addresses the issue - thanks for the quick fix!

@mhegazy mhegazy added this to the TypeScript 1.4 milestone Dec 2, 2014
@s-panferov
Copy link
Author

@mhegazy 👍 thanks!

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants