[registrar] Improve error message.

This commit is contained in:
Rolf Bjarne Kvinge 2017-07-11 18:27:28 +02:00
Родитель 06b50490b9
Коммит e6f75d5ed9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3031,7 +3031,7 @@ namespace XamCore.Registrar {
if (type != nativetype) { if (type != nativetype) {
GenerateConversionToManaged (nativetype, type, setup_call_stack, descriptiveMethodName, ref exceptions, method, $"p{i}", $"arg_ptrs [{i}]", $"mono_class_from_mono_type (xamarin_get_parameter_type (managed_method, {i}))"); GenerateConversionToManaged (nativetype, type, setup_call_stack, descriptiveMethodName, ref exceptions, method, $"p{i}", $"arg_ptrs [{i}]", $"mono_class_from_mono_type (xamarin_get_parameter_type (managed_method, {i}))");
if (isRef || isOut) if (isRef || isOut)
throw new Exception (); throw ErrorHelper.CreateError (4163, $"Internal error in the registrar (BindAs parameters can't be ref/out: {descriptiveMethodName}). Please file a bug report at https://bugzilla.xamarin.com");
continue; continue;
} else if (isRef) { } else if (isRef) {
type = type.GetElementType (); type = type.GetElementType ();