Preview:```ts
class A {
__kind = "A" as const
}
function create2<B extends typeof A>(B: B): B {
// new B should result in type B, surely
const b = new B() // but b is type A
return b // Type 'A' is not assignable to type 'B'.
// 'B' could be instantiated with an arbitrary type which could be unrelated to 'A'.
...```
You can choose specific lines to embed by selecting them before copying the link.