[Inference] Fix subtyping on classes with same FQN but with different number of arguments
Such situations may appear if there are multiple classes with same names from different modules in dependencies
This commit is contained in:
+1
-1
@@ -26,4 +26,4 @@ import p.*
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(M1().a)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -37,6 +37,6 @@ import p.*
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>a<!>(M1().b) // Type arguments do not match
|
||||
c(M1().b) // Type arguments do not match
|
||||
<!INAPPLICABLE_CANDIDATE!>c<!>(M1().b) // Type arguments do not match
|
||||
d(M1().b) // Type arguments do match
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user