projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] Initial by ref returns and variables support
[mono.git]
/
mcs
/
mcs
/
convert.cs
diff --git
a/mcs/mcs/convert.cs
b/mcs/mcs/convert.cs
index 8fe0e2026ca5842fdc286d456bf41a536f79456b..b11477c104394b7bc77075d6e4fa02827797529e 100644
(file)
--- a/
mcs/mcs/convert.cs
+++ b/
mcs/mcs/convert.cs
@@
-1503,6
+1503,11
@@
namespace Mono.CSharp {
return null;
}
+ if (expr is ReferenceExpression) {
+ // Only identify conversion is allowed
+ return null;
+ }
+
e = ImplicitNumericConversion (expr, expr_type, target_type);
if (e != null)
return e;