From 57b772fa58533b5cf9de16d91d6ef184d77504fb Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sat, 16 Nov 2002 14:49:47 +0000 Subject: [PATCH] 2002-11-16 Martin Baulig * ecore.cs (PropertyExpr.VerifyAssignable): Check whether we have a setter rather than using PropertyInfo.CanWrite. svn path=/trunk/mcs/; revision=9010 --- mcs/mcs/ChangeLog | 5 +++++ mcs/mcs/ecore.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mcs/mcs/ChangeLog b/mcs/mcs/ChangeLog index 599690641d9..c708745828b 100755 --- a/mcs/mcs/ChangeLog +++ b/mcs/mcs/ChangeLog @@ -1,3 +1,8 @@ +2002-11-16 Martin Baulig + + * ecore.cs (PropertyExpr.VerifyAssignable): Check whether we have + a setter rather than using PropertyInfo.CanWrite. + 2002-11-15 Nick Drochak * class.cs: Allow acces to block member by subclasses. Fixes build diff --git a/mcs/mcs/ecore.cs b/mcs/mcs/ecore.cs index 56ec8066877..db2b070af30 100755 --- a/mcs/mcs/ecore.cs +++ b/mcs/mcs/ecore.cs @@ -4172,7 +4172,7 @@ namespace Mono.CSharp { public bool VerifyAssignable () { - if (!PropertyInfo.CanWrite){ + if (setter == null) { Report.Error (200, loc, "The property `" + PropertyInfo.Name + "' can not be assigned to, as it has not set accessor"); -- 2.25.1