TypeScript/tests/cases/conformance/internalModules/exportDeclarations/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts
2014-07-12 17:30:19 -07:00

15 lines
284 B
TypeScript

module A {
export class Point {
x: number;
y: number;
}
class Line {
constructor(public start: Point, public end: Point) { }
}
export function fromOrigin(p: Point): Line {
return new Line({ x: 0, y: 0 }, p);
}
}