提交 50f2666e 编写于 作者: D Dmitriy Novozhilov

[IR] Properly render type arguments in error messages

上级 ee7c9079
......@@ -57,7 +57,7 @@ fun buildFakeOverrideMember(superType: IrType, member: IrOverridableMember, claz
for (i in typeParameters.indices) {
val tp = typeParameters[i]
val ta = superArguments[i]
require(ta is IrTypeProjection) { "Unexpected super type argument: $ta @ $i" }
require(ta is IrTypeProjection) { "Unexpected super type argument: ${ta.render()} @ $i" }
assert(ta.variance == Variance.INVARIANT) { "Unexpected variance in super type argument: ${ta.variance} @$i" }
substitutionMap[tp.symbol] = ta.type
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册