Skip to content

Crash: isDeclarationVisible unknown: SyntaxKind: 134 #1288

Closed

Description

/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)

Activity

  1. s-panferov commented on Nov 27, 2014

    @s-panferov
    Author

    The same code successfully compiles on tsc 1.3.

  2. s-panferov commented on Nov 27, 2014

    @s-panferov
    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

  3. mhegazy commented on Dec 1, 2014

    @mhegazy
    Contributor

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

  4. derekcicerone-zz commented on Dec 1, 2014

    @derekcicerone-zz

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

  5. s-panferov commented on Dec 2, 2014

    @s-panferov
    Author
  6. locked and limited conversation to collaborators on Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions