[Analysis API] add test for duplicated callable during implicit type
^KT-63547
This commit is contained in:
committed by
Space Team
parent
51f6525238
commit
e3841a1728
+13
@@ -0,0 +1,13 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtCallExpression at (24,20) - (27,2)
|
||||
TYPE_MISMATCH text ranges: [(98,160)]
|
||||
PSI: KtCallExpression at (24,20) - (27,2)
|
||||
for PSI element of type KtLambdaExpression at (24,24) - (27,2)
|
||||
TYPE_MISMATCH text ranges: [(102,160)]
|
||||
PSI: KtLambdaExpression at (24,24) - (27,2)
|
||||
for PSI element of type KtNameReferenceExpression at (25,5-17)
|
||||
UNRESOLVED_REFERENCE text ranges: [(108,120)]
|
||||
PSI: KtNameReferenceExpression at (25,5-17)
|
||||
for PSI element of type KtNameReferenceExpression at (26,5-34)
|
||||
UNRESOLVED_REFERENCE text ranges: [(127,156)]
|
||||
PSI: KtNameReferenceExpression at (26,5-34)
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// DISABLE_SEALED_INHERITOR_CALCULATOR
|
||||
// MODULE: lib1
|
||||
// FILE: dependency.kt
|
||||
package usage
|
||||
|
||||
fun implicitType() = 1
|
||||
|
||||
// MODULE: dep(lib1)
|
||||
// FILE: annotation.kt
|
||||
package usage
|
||||
|
||||
fun implicitTypeFromAnotherModule() = implicitType()
|
||||
|
||||
// MODULE: lib2
|
||||
// FILE: dependency.kt
|
||||
package usage
|
||||
|
||||
fun implicitType() = "str"
|
||||
|
||||
// MODULE: main(lib2, dep)
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun usage(): Int = run {
|
||||
implicitType()
|
||||
implicitTypeFromAnotherModule()
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtCallExpression at (26,5-36)
|
||||
ARGUMENT_TYPE_MISMATCH text ranges: [(127,158)]
|
||||
PSI: KtCallExpression at (26,5-36)
|
||||
Reference in New Issue
Block a user