9 lines
192 B
TypeScript
9 lines
192 B
TypeScript
//// [contextuallyTypingOrOperator3.ts]
|
|
function foo<T, U extends T>(u: U) {
|
|
var x3: U = u || u;
|
|
}
|
|
|
|
//// [contextuallyTypingOrOperator3.js]
|
|
function foo(u) {
|
|
var x3 = u || u;
|
|
}
|