Skip to content

Commit e6f8fb0

Browse files
committed
Diagnostics in SetValue() of NullValueReference and LiteralValueReference
(cherry picked from commit 31019a1)
1 parent 088786f commit e6f8fb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/LiteralValueReference.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override object Value {
108108
return value;
109109
}
110110
set {
111-
throw new NotSupportedException ();
111+
throw new NotSupportedException ("Assignment to a literal is not possible");
112112
}
113113
}
114114

Mono.Debugging/Mono.Debugging.Evaluation/NullValueReference.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public override object Value {
5050
return obj;
5151
}
5252
set {
53-
throw new NotSupportedException ();
53+
throw new NotSupportedException ("Assignment to the null literal is not possible");
5454
}
5555
}
5656

0 commit comments

Comments
 (0)