a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
46 lines
433 B
C#
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 ()
|
|
{
|
|
}
|
|
}
|