mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
//// [tests/cases/compiler/contextuallyTypingOrOperator3.ts] ////
|
|
|
|
//// [contextuallyTypingOrOperator3.ts]
|
|
function foo<T, U extends T>(u: U) {
|
|
var x3: U = u || u;
|
|
}
|
|
|
|
//// [contextuallyTypingOrOperator3.js]
|
|
"use strict";
|
|
function foo(u) {
|
|
var x3 = u || u;
|
|
}
|