File tree Expand file tree Collapse file tree
lib/codeql/unified/internal
test/library-tests/static-name-binding/not-a-package/SiblingFiles/SubFolder1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,6 +458,8 @@ private module FolderHeuristic {
458458 */
459459 private predicate hasConflictingDefs ( Folder folder , string name ) {
460460 containsDef ( folder , name ) and
461+ // Check for "two or more" using `exists(X) and not exists(unique(X))`
462+ containsDef ( folder .getAFolder ( ) , name ) and
461463 not exists ( unique( Folder child | child = folder .getAFolder ( ) and containsDef ( child , name ) ) )
462464 }
463465
Original file line number Diff line number Diff line change 11private protocol P {
2- let x4: DeclaredTwiceInSubFolder ; // $ MISSING: access=Subfolder1.DeclaredTwiceInSubFolder
2+ let x4: DeclaredTwiceInSubFolder ; // $ access=Subfolder1.DeclaredTwiceInSubFolder
33 let x5: OnlyInSubFolder1 ; // $ access=OnlyInSubFolder1
44 let x6: OnlyInSubFolder2 ; // $ access=OnlyInSubFolder2
55}
You can’t perform that action at this time.
0 commit comments