Skip to content

Commit 9d3312d

Browse files
authored
Fix merge issue (#166)
1 parent 2f9d802 commit 9d3312d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/compiler/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2847,7 +2847,7 @@ func (c *Checker) checkElementAccessExpression(node *ast.Node, exprType *Type, c
28472847
if c.isErrorType(objectType) || objectType == c.silentNeverType {
28482848
return objectType
28492849
}
2850-
if isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression) {
2850+
if isConstEnumObjectType(objectType) && !ast.IsStringLiteralLike(indexExpression) {
28512851
c.error(indexExpression, diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal)
28522852
return c.errorType
28532853
}

0 commit comments

Comments
 (0)