Update dependencies from https://github.com/dotnet/arcade build 20190729.1 (#15881)
[mono-project.git] / mcs / tests / test-796.cs
blobb77d98d7290aa96168dd4197bcbb6809df7fe9c8
1 // Compiler options: -warnaserror -warn:4
3 // No CS0649 warnings
5 using System;
7 struct S
11 class C2
13 S s;
15 void Foo ()
17 Func<string> f = s.ToString;
18 Console.WriteLine (f);
22 [Foo (Product = "Mono")]
23 class Program
25 S s;
27 void Test ()
29 s.ToString ();
32 public static void Main ()
34 new Program ().Test ();
38 class FooAttribute : Attribute
40 public string Product;
42 public FooAttribute ()