TypeScript/tests/baselines/reference/typeParametersAvailableInNestedScope2.js

22 lines
431 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [typeParametersAvailableInNestedScope2.ts]
function foo<T, U>(x: T, y: U) {
function bar<V>(z: V) {
function baz<W>(a: W) {
var c: T;
var d: U;
var e: V;
}
}
}
//// [typeParametersAvailableInNestedScope2.js]
function foo(x, y) {
function bar(z) {
function baz(a) {
var c;
var d;
var e;
}
}
}