TypeScript/tests/cases/compiler/contextuallyTypingOrOperator3.ts
2014-07-12 17:30:19 -07:00

3 lines
64 B
TypeScript

function foo<T, U extends T>(u: U) {
var x3: U = u || u;
}