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
Describe the bug
Wrong duplicate definition error for nested functions.
To Reproduce
Steps to reproduce the behavior:
Create a function named "example()" in a nested match /databases/{database}/documents/collectionA
Create a function named "example()" in a nested match /databases/{database}/documents/collectionB
See error Duplicate definions with name example
Expected behavior
The plugin should not search for duplicated functions in sibling matches structures.
Screenshots
Possible solution
In src/main/kotlin/co/anbora/labs/firebase/ide/inspections/DuplicateFunctionsInspection.kt DuplicateFunctionsInspection.kt
Concat the match path of the function in the key for comparison, at line: 29 val key = it.identifierExpr?.text + "_" + it.functionParameterList?.functionParameterList?.size
The text was updated successfully, but these errors were encountered:
Describe the bug
Wrong duplicate definition error for nested functions.
To Reproduce
Steps to reproduce the behavior:
example
Expected behavior
The plugin should not search for duplicated functions in sibling matches structures.
Screenshots
Possible solution
In
src/main/kotlin/co/anbora/labs/firebase/ide/inspections/DuplicateFunctionsInspection.kt
DuplicateFunctionsInspection.kt
Concat the match path of the function in the key for comparison, at line: 29
val key = it.identifierExpr?.text + "_" + it.functionParameterList?.functionParameterList?.size
The text was updated successfully, but these errors were encountered: