Fixed argument for error message 'TYPE_PARAMETER_AS_REIFIED'

This commit is contained in:
Svetlana Isakova
2014-11-14 17:52:58 +03:00
parent 0719297d8f
commit 2948ca9077
4 changed files with 17 additions and 1 deletions
@@ -46,7 +46,7 @@ public class ReifiedTypeParameterSubstitutionCheck implements CallResolverExtens
!((TypeParameterDescriptor) argumentDeclarationDescription).isReified()
) {
context.trace.report(
Errors.TYPE_PARAMETER_AS_REIFIED.on(getCallElement(context), typeArguments.keySet().iterator().next())
Errors.TYPE_PARAMETER_AS_REIFIED.on(getCallElement(context), parameter)
);
}
else if (KotlinBuiltIns.getInstance().isNothingOrNullableNothing(argument)) {