We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dffdff7 commit eb628a5Copy full SHA for eb628a5
internal/checker/checker.go
@@ -10395,7 +10395,7 @@ func (c *Checker) checkReflectCollision(node *ast.Node) {
10395
10396
func (c *Checker) checkClassNameCollisionWithObject(name *ast.Node) {
10397
if name.Text() == "Object" && c.program.GetEmitModuleFormatOfFile(ast.GetSourceFileOfNode(name)) < core.ModuleKindES2015 {
10398
- c.error(name, diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0, core.ModuleKind(c.moduleKind).String())
+ c.error(name, diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0, c.moduleKind.String())
10399
}
10400
10401
0 commit comments