2007-04-11 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / tests / gtest-329.cs
1 using System;
2
3 public class NullableInt
4 {
5          public static void Main()
6          {
7                  object x = null;
8
9                  int? y = x as int?;  /* Causes CS0077 */
10
11                  Console.WriteLine("y: '{0}'", y);
12                  Console.WriteLine("y.HasValue: '{0}'", y.HasValue);
13          }
14 }