Handle TypeAliasDescriptor in AdaptiveClassifierNamePolicy

(as ClassDescriptor)
This commit is contained in:
Dmitry Petrov
2017-03-13 11:58:22 +03:00
parent ce3b455f57
commit a0a8beee82
4 changed files with 49 additions and 8 deletions
@@ -0,0 +1,18 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: TYPE_MISMATCH
// !MESSAGE_TYPE: HTML
package a.b.c
class G
typealias A = G
class D<T, A> {
fun g(t: Map<T, a.b.c.A>) {
}
fun <T> g(t1: Map<T, A>, t2: Int) {
g(t1)
}
}
@@ -0,0 +1,14 @@
<!-- complexTypeMismatchWithTypeParametersAndTypeAlias1 -->
<html>
Type mismatch.
<table>
<tr>
<td>Required:</td>
<td>Map<`T#1<i> (type parameter of a.b.c.D)</i>, a.b.c.A<font color="808080"><i> /* = G */</i></font>></td>
</tr>
<tr>
<td>Found:</td>
<td>Map<`T#2<i> (type parameter of a.b.c.D.g)</i>, A#1<i> (type parameter of a.b.c.D)</i>></td>
</tr>
</table>
</html>