diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-03-29 16:27:05 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-03-29 16:27:05 +0400 |
commit | 22c7174256b1626d62ee0e125abb5996bc636a30 (patch) | |
tree | 53593a411e9b091d214df566739307d17e669860 /mcs/errors/errors.txt | |
parent | 1466ec3475e6126d0a6dfb95b633f6175c4661d5 (diff) |
In mcs:
Fix #47991. Remove a TODO.
* statement.cs (Block.Toplevel): Make into a field.
(Block.Parameters): Move into ToplevelBlock.
(Block.known_variables): Rename from child_variable_names.
(Block.Block): Remove variants that take Parameters. Initialize
'Toplevel' with the immediately surrounding toplevel block.
(Block.AddKnownVariable): Rename from AddChildVariableName. Add a
LocalInfo parameter.
(Block.GetKnownVariableInfo): New.
(Block.IsVariableNameUsedInChildBlock): Update.
(Block.IsVariableNameUsedInBlock): New. Checks if a name is used in
the block, even though it may not be in scope.
(Block.AddVariable): Remove Parameters parameter. Use
Toplevel.Parameters instead.
(Block.AddConstant): Remove Parameters parameter.
(Block.GetParameterReference): Update to use Toplevel.Parameters.
(Block.IsParamaterReference): Likewise.
(Block.IsLocalParameter): Likewise. Simplify a lot.
(ToplevelBlock.Parameters): New. Moved from Block.
(ToplevelBlock.ToplevelBlock): Update to changes. Always
initialize Parameters to a non-null value.
* cs-parser.jay: Update to changes.
* ecore.cs (SimpleName.SimpleNameResolve): Emit cs0136 error for
simple names that mean different things in the same block. Use
Block.IsVariableNameUsedInBlock.
In errors:
* cs0136-3.cs, cs0136-4.cs: New tests from #47991.
svn path=/trunk/mcs/; revision=42330
Diffstat (limited to 'mcs/errors/errors.txt')
-rw-r--r-- | mcs/errors/errors.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/errors/errors.txt b/mcs/errors/errors.txt index 2fc96244fd8..73be6768a8b 100644 --- a/mcs/errors/errors.txt +++ b/mcs/errors/errors.txt @@ -81,6 +81,11 @@ numbers, as they look nicer on the debugging output. -27 Attribute resolved to two different types +-28 (warning) Somehow there's a function marked override, and + doesn't override anything. Warn that this method will be + ignored during overload resolution. (marked override == in IL, + it has a 'virtual', but no 'newslot') + ---------- Errors that we have allocated that will have corresponding errors in |