Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

46 lines
433 B
C#

// Compiler options: -warnaserror -warn:4
// No CS0649 warnings
using System;
struct S
{
}
class C2
{
S s;
void Foo ()
{
Func<string> f = s.ToString;
Console.WriteLine (f);
}
}
[Foo (Product = "Mono")]
class Program
{
S s;
void Test ()
{
s.ToString ();
}
public static void Main ()
{
new Program ().Test ();
}
}
class FooAttribute : Attribute
{
public string Product;
public FooAttribute ()
{
}
}