Here it is...

Now, I submitted the patch to the Rafael 'monoman' and in few days it will be
commited...

and if you wanna fix it sooner :

aply the patch on mbas...

patch -i patchPropertiesWarnings.diff



On 8/24/05, Maverson Eduardo <[EMAIL PROTECTED]> wrote:
> Hi
> oops,
> 
> The patch that I mentioned was about Functions, but i think that this
> problem is seemed. I will try to fix this until next week...
> Sorry about the mistake...
> 
> On 8/24/05, Jesse van den Kieboom <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've declared some properties like:
> >
> > Public Property SubCommand()
> >       Get
> >               SubCommand = fSubCmd
> >       End Get
> >       Set
> >               fSubCmd = value
> >       End Set
> > End Property
> >
> > The compiler gives me warnings:
> > The variable 'SubCommand' is assigned but its value is never
> > used(BC0219). Why is this? I don't think I'm doing anything wrong here
> > and I don't think this should be a warning...
> >
> >
> > Regard,
> >
> >
> > Jesse van den Kieboom
> >
> > _______________________________________________
> > Mono-vb mailing list
> > [email protected]
> > http://lists.ximian.com/mailman/listinfo/mono-vb
> >
> 
> 
> --
> Regards,
> Maverson Eduardo
> 


-- 
Atenciosamente,
Maverson Eduardo
Bacharelado em Ciência da Computação
GTIC - Grupo de Tecnologia de Informação e Comunicação
Universidade Federal do Paraná
  __    __ ____
 |    \/    |  __ )   __ _ ___    | Projeto Mono Brasil
 |  | \/ |  |  _   \ / _ ` /  __|   | MBas TEAM Developer
 |  |    |  | |_ )  | (_|  \ __  \  | The Monkeys make better..
 |_|    | _|____/ \__,_ |___ /  | [EMAIL PROTECTED] 
   Projeto Mono Basic     | ICQ #37153267 MSN [EMAIL PROTECTED]
Tel: 9928-5607
Index: ChangeLog
===================================================================
--- ChangeLog	(revisão 49138)
+++ ChangeLog	(cópia de trabalho)
@@ -1,3 +1,7 @@
+2005-08-30 Maverson Eduardo Schulze Rosa <[EMAIL PROTECTED]>
+	* mb-parser.jay: Define as used the Property's return variable,
+	suppressing warnings due to unused variables.
+
 2005-08-23 Satya Sudha K <[EMAIL PROTECTED]>
 	* statement.cs : 
 		StatementSequence : Avoid Resolving multiple times
Index: mb-parser.jay
===================================================================
--- mb-parser.jay	(revisão 49138)
+++ mb-parser.jay	(cópia de trabalho)
@@ -2298,7 +2298,8 @@
 		// for return value
 		ArrayList retval = new ArrayList ();
 		retval.Add (new VariableDeclaration (get_implicit_value_parameter_name, get_implicit_value_parameter_type, (Location)$3));
-		declare_local_variables (get_implicit_value_parameter_type, retval, lexer.Location);	
+		Block implicit_block = declare_local_variables (get_implicit_value_parameter_type, retval, lexer.Location);
+		implicit_block.GetVariableInfo(get_implicit_value_parameter_name).Used = true;
 	  }
 	  opt_statement_list
           opt_end_block
_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to