You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual behavior of this is that the assertion should not fail.
In reality, this takes on the value of { x: 1 } in Bar's constructor, since Foo returned it from its constructor.
Incurs an overhead.
This requires some wonky code to enable this scenario.
Everyone has to pay the price regardless of whether they use it.
Could we just do something like _this = _super.call(this) || this instead of a helper?
Seems like spec says behavior for primitives causes issues.
This is a very niche case.
We'd also have to return _this to maintain _this value.
"If we had attributes, people could hint the correct thing."
We need to think about this more.
This seems to be a large change for a somewhat niche scenario, but we should better understand the users of it.
never
andvoid
assignabilityAllowing duplicate identifiers across declarations (#8675, #8696)
stack
into theError
interface.abstract
,readonly
, visibility).super
issuesSubclassing without calling super (#7285)
instanceof
anHTMLElement
...but notMyElement
?MyElement
won't be in your prototype chain, you won't get the appropriate methods.Using return value of super calls (#7574)
The actual behavior of this is that the assertion should not fail.
In reality,
this
takes on the value of{ x: 1 }
inBar
's constructor, sinceFoo
returned it from its constructor._this = _super.call(this) || this
instead of a helper?_this
to maintain_this
value.We need to think about this more.
This seems to be a large change for a somewhat niche scenario, but we should better understand the users of it.
Super as the first statement (#8277)
super(/*...*/
) gives you some sort of "antidote" type (any other type?), check if you still end up with the poisoned type.--target ES5 --module ES6
Switch to not type-check
.d.ts
files.d.ts
files..d.ts
files.The text was updated successfully, but these errors were encountered: