diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-03-15 14:36:52 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-03-15 14:36:52 +0300 |
commit | 3c51d59125a4ecf704d0bcd2302064da37437dbd (patch) | |
tree | 878ece23014f91a18138f969f5570d55ca904092 /mcs/errors/cs0266-3.cs | |
parent | 1526b387b56b76b48ac86e4bec98e35619fd3aa8 (diff) |
New tests + updated wrong (need to flush before it become chaotic)
Removed obsole tests.
svn path=/trunk/mcs/; revision=41830
Diffstat (limited to 'mcs/errors/cs0266-3.cs')
-rw-r--r-- | mcs/errors/cs0266-3.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0266-3.cs b/mcs/errors/cs0266-3.cs new file mode 100644 index 00000000000..ca15722d649 --- /dev/null +++ b/mcs/errors/cs0266-3.cs @@ -0,0 +1,14 @@ +// cs0266.cs: Cannot implicitly convert type 'object' to 'System.Collections.ArrayList'. An explicit conversion exists (are you missing a cast?) +// Line: 10 + +using System.Collections; + +class X +{ + static Hashtable h = new Hashtable (); + + public static void Main () + { + ArrayList l = h ["hola"] = new ArrayList (); + } +} |