projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
439ef67
)
Less cascading errors
author
Marek Safar
<marek.safar@gmail.com>
Fri, 26 Jul 2013 21:22:49 +0000
(23:22 +0200)
committer
Marek Safar
<marek.safar@gmail.com>
Fri, 26 Jul 2013 21:23:50 +0000
(23:23 +0200)
mcs/mcs/expression.cs
patch
|
blob
|
history
diff --git
a/mcs/mcs/expression.cs
b/mcs/mcs/expression.cs
index 7dd42aa141f208c66607d59477a481c6c33cbccb..d02603f90f2f399ae00741ee76ad519ffd692e01 100644
(file)
--- a/
mcs/mcs/expression.cs
+++ b/
mcs/mcs/expression.cs
@@
-1662,8
+1662,10
@@
namespace Mono.CSharp
return this;
}
- ec.Report.Error (39, loc, "Cannot convert type `{0}' to `{1}' via a built-in conversion",
- etype.GetSignatureForError (), type.GetSignatureForError ());
+ if (etype != InternalType.ErrorType) {
+ ec.Report.Error (39, loc, "Cannot convert type `{0}' to `{1}' via a built-in conversion",
+ etype.GetSignatureForError (), type.GetSignatureForError ());
+ }
return null;
}