Closed
Description
// @strict: true
/** @this {number} */
function nothis/*1*/() {
this // noImplicitThis error here
}
nothis() // `this` not required to call
Quickinfo at /*1*/
, and type baselines, print the type of nothis
as (this: number) => void
, even in Typescript where the tag should be ignored. But the type checker still has this: any
, so I think it's a bug inside typeToString
.
Metadata
Metadata
Assignees
Labels
No labels