[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:
Dmitriy Novozhilov
2021-02-03 17:49:18 +03:00
parent 0b22c30ab1
commit df42868874
4 changed files with 15 additions and 7 deletions
@@ -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
}
}