Skip to content

///<reference path=""> not imported #5

Open
@martypitt

Description

@martypitt

Reference paths appear to be ignored.

Eg:

// In Typescript.ts:
/// <reference path="Base.ts"/>
class Greeter extends Base {
    super();
}


// In Base.ts:
public class Base {}

Results in the following:

Compilation error: The name 'Base' does not exist in the current scope
Code block: 1 Start position: 55 Length: 4 typescript.compile.min.js:16
Compilation error: Base type must be interface or class
Code block: 1 Start position: 0 Length: 1 typescript.compile.min.js:16
Compilation error: Function declared a non-void return type, but has no return expression
Code block: 1 Start position: 205 Length: 27 typescript.compile.min.js:16
Compilation error: Base type 'any' lacks an implementation.
Code block: 1 Start position: 33 Length: 201 typescript.compile.min.js:16
Compilation error: Base type 'any' lacks an implementation.
Code block: 1 Start position: 33 Length: 201 typescript.compile.min.js:16
Compilation error: Base type 'any' lacks an implementation.
Code block: 1 Start position: 33 Length: 201

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions