Closed
Description
nightly build jan 26
interface Wrapped<T> {
wrapped: T;
}
function wrap<T>(value: T): Wrapped<T> {
return { wrapped: value };
}
const one = 'test'; // one is 'test'
const oneWrapped = wrap(one); // oneWrapped is Wrapped<string>
const another: 'test' = 'test'; // another is 'test'
const anotherWrapped = wrap(another); // anotherWrapped is Wrapped<'test'> <--- WHY?
is that how #10676 supposed to work?