Kotlin: Excluded compiler generated methods from java/confusing-method-signature

This commit is contained in:
Tamas Vajk
2022-10-31 10:01:46 +01:00
parent 556c199a89
commit ec5ac17f87
2 changed files with 2 additions and 1 deletions

View File

@@ -137,6 +137,8 @@ private predicate delegate(Method caller, Method callee) {
from Method m, Method n, string messageQualifier
where
// Exclude compiler generated methods, such as Kotlin `$default` methods:
not m.isCompilerGenerated() and
confusinglyOverloaded(m, n) and
(
if m.getDeclaringType() = n.getDeclaringType()

View File

@@ -1 +0,0 @@
| Test.kt:12:5:12:45 | fn$default | Method A.fn$default(..) could be confused with overloaded method $@, since dispatch depends on static types. | Test.kt:13:5:13:40 | fn$default | fn$default |