Merge pull request #5693 from lateralusX/lateralusX/disable-stack-overflow-win-x64
[mono.git] / mcs / errors / cs0266-15.cs
1 // CS0266: Cannot implicitly convert type `object' to `System.Collections.Hashtable'. An explicit conversion exists (are you missing a cast?)
2 // Line: 17
3
4 // This case actually tests that the compiler doesn't crash after reporting the error
5
6 using System.Collections;
7
8 class X {
9         static void Main (string [] install)
10         {
11                 ArrayList order = new ArrayList ();
12                 Hashtable states = new Hashtable ();
13
14                 try {
15                         if (install != null){
16                                 foreach (string inst in order){
17                                         Hashtable state = states [inst];
18                                 }
19                         }
20                 } catch {
21                 }
22         }
23 }