提交 6a5e36d7 编写于 作者: M Marek Safar

Fix empty cast conversion from dynamic type object type argument

上级 5e261c90
......@@ -1375,8 +1375,12 @@ namespace Mono.CSharp {
if (expr_type == InternalType.Arglist && target_type == TypeManager.arg_iterator_type)
return expr;
if (TypeSpecComparer.IsEqual (expr_type, target_type))
return expr;
if (TypeSpecComparer.IsEqual (expr_type, target_type)) {
if (expr_type == target_type)
return expr;
return EmptyCast.Create (expr, target_type);
}
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册