Skip to content

Commit eb47e34

Browse files
Damtevzishkaz
authored andcommitted
Fixed searching for inherited ambiguous methods (#1634)
1 parent 8ed5b07 commit eb47e34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree/ConstructorUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ internal fun ClassId.getAmbiguousOverloadsOf(executableId: ExecutableId): Sequen
408408
is ConstructorId -> allConstructors
409409
}
410410

411+
// We should take here not only declared methods but also inherited
411412
return allExecutables.filter {
412413
it.name == executableId.name && it.parameters.size == executableId.executable.parameters.size
413414
}

0 commit comments

Comments
 (0)