projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4716 from Unity-Technologies/eglib-msvc-targets
[mono.git]
/
mcs
/
mcs
/
literal.cs
diff --git
a/mcs/mcs/literal.cs
b/mcs/mcs/literal.cs
index bb0370914bed2af3e6603091c0f9f528910a520e..1af2d0c9e379ecb600379156bfe84dbf1ab67bb9 100644
(file)
--- a/
mcs/mcs/literal.cs
+++ b/
mcs/mcs/literal.cs
@@
-50,7
+50,7
@@
namespace Mono.CSharp
{
}
{
}
- public override void Error_ValueCannotBeConverted (ResolveContext ec,
Location loc,
TypeSpec t, bool expl)
+ public override void Error_ValueCannotBeConverted (ResolveContext ec, TypeSpec t, bool expl)
{
if (t.IsGenericParameter) {
ec.Report.Error(403, loc,
{
if (t.IsGenericParameter) {
ec.Report.Error(403, loc,
@@
-61,11
+61,11
@@
namespace Mono.CSharp
if (TypeSpec.IsValueType (t)) {
ec.Report.Error(37, loc, "Cannot convert null to `{0}' because it is a value type",
if (TypeSpec.IsValueType (t)) {
ec.Report.Error(37, loc, "Cannot convert null to `{0}' because it is a value type",
-
TypeManager.CSharpName(t
));
+
t.GetSignatureForError (
));
return;
}
return;
}
- base.Error_ValueCannotBeConverted (ec,
loc,
t, expl);
+ base.Error_ValueCannotBeConverted (ec, t, expl);
}
public override string GetValueAsLiteral ()
}
public override string GetValueAsLiteral ()
@@
-253,7
+253,7
@@
namespace Mono.CSharp
{
}
{
}
- public override void Error_ValueCannotBeConverted (ResolveContext ec,
Location loc,
TypeSpec target, bool expl)
+ public override void Error_ValueCannotBeConverted (ResolveContext ec, TypeSpec target, bool expl)
{
if (target.BuiltinType == BuiltinTypeSpec.Type.Float) {
Error_664 (ec, loc, "float", "f");
{
if (target.BuiltinType == BuiltinTypeSpec.Type.Float) {
Error_664 (ec, loc, "float", "f");
@@
-265,7
+265,7
@@
namespace Mono.CSharp
return;
}
return;
}
- base.Error_ValueCannotBeConverted (ec,
loc,
target, expl);
+ base.Error_ValueCannotBeConverted (ec, target, expl);
}
static void Error_664 (ResolveContext ec, Location loc, string type, string suffix)
}
static void Error_664 (ResolveContext ec, Location loc, string type, string suffix)