Skip to content

Commit

Permalink
add isNative exception to identity override
Browse files Browse the repository at this point in the history
  • Loading branch information
MVitelli committed Dec 1, 2024
1 parent 8a78884 commit ecefb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export const shouldHaveDifferentName = error<Test>(node => {


export const shouldNotRedefineIdentity = error<Method>(node => {
return !(node.name === '===' && node.parameters.length === 1 && node.ancestors.length === 0)
return !(node.name === '===' && node.parameters.length === 1 && node.isOverride && !node.isNative())

Check warning on line 529 in src/validator/index.ts

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed

Check warning on line 529 in src/validator/index.ts

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
}, undefined, sourceMapForNodeName)

// ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Expand Down

0 comments on commit ecefb5e

Please sign in to comment.