diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-02-18 14:43:51 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-02-18 14:43:51 +0300 |
commit | 2ceed4bc7e4b3581a713fad7828e8c0796589be5 (patch) | |
tree | 10cce89633fd088dd1027ae81c9355e0b218a6e6 /mcs/errors/cs0131-3.cs | |
parent | 568c582dcb5df0cec43c787064903e0305920b1a (diff) |
* cs0131-3.cs: New test from #63202.
svn path=/trunk/mcs/; revision=40855
Diffstat (limited to 'mcs/errors/cs0131-3.cs')
-rw-r--r-- | mcs/errors/cs0131-3.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0131-3.cs b/mcs/errors/cs0131-3.cs new file mode 100644 index 00000000000..45e1dee05e7 --- /dev/null +++ b/mcs/errors/cs0131-3.cs @@ -0,0 +1,14 @@ +// cs0131.cs: The left-hand side of an assignment or mutating operation must be a variable, property or indexer +// Line: 12 + +using System; +using System.Collections; + +class Test { + public static void Main(string[] args) { + ArrayList al = new ArrayList(); + al[0] = 0; + + Console.WriteLine(((int)al[0])++); + } +} |