9 lines
198 B
TypeScript
9 lines
198 B
TypeScript
// Regression test for #5861
|
|
|
|
interface Foo<T> { prop: T; }
|
|
|
|
declare function lift<U>(value: U | Foo<U>): Foo<U>;
|
|
|
|
function unlift<U>(value: U | Foo<U>): U {
|
|
return lift(value).prop;
|
|
}
|