mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
554 B
TypeScript
28 lines
554 B
TypeScript
//// [tests/cases/compiler/crashInResolveInterface.ts] ////
|
|
|
|
//// [file1.ts]
|
|
interface Q<T> {
|
|
each(action: (item: T, index: number) => void): void;
|
|
}
|
|
var q1: Q<{ a: number; }>;
|
|
var x = q1.each(x => c.log(x));
|
|
|
|
//// [file2.ts]
|
|
///<reference path='file1.ts'/>
|
|
declare var c: C;
|
|
interface C {
|
|
count(countTitle?: string): void;
|
|
}
|
|
interface C {
|
|
log(message?: any, ...optionalParams: any[]): void;
|
|
}
|
|
|
|
|
|
//// [file1.js]
|
|
"use strict";
|
|
var q1;
|
|
var x = q1.each(x => c.log(x));
|
|
//// [file2.js]
|
|
"use strict";
|
|
///<reference path='file1.ts'/>
|