Fix #80477, cs0135-2.cs, cs0135-3.cs
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 7 Jun 2007 15:59:28 +0000 (15:59 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 7 Jun 2007 15:59:28 +0000 (15:59 -0000)
commit756c4497dab906bf0759dcab08b9aa5aaff63fba
treecaa826e817def7232b78924cdb14f0b241295fe8
parent45bded425870bb8fd88a60cb03d4ec78029a4397
Fix #80477, cs0135-2.cs, cs0135-3.cs

* mcs/statement.cs (ToplevelBlock.ProcessParameters): Add parameter
names to the "known" variables list.
(Block.CheckInvariantMeaningInBlock): Handle the fact the
parameter names are also "known".
(Block.CheckError136): Remove.
(ExplicitBlock.CloneTo): New.  Set 'known_variables' in target to null.
* errors/cs0135-2.cs, errors/cs0135-3.cs: New tests for parameter name
conflicts.

svn path=/trunk/mcs/; revision=78855
mcs/errors/ChangeLog
mcs/errors/cs0135-2.cs [new file with mode: 0644]
mcs/errors/cs0135-3.cs [new file with mode: 0644]
mcs/mcs/ChangeLog
mcs/mcs/statement.cs