[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / gtest-optional-15.cs
blob54d726f5858ecb4778d418070d1ed14f6df3bf07
1 using System;
2 using System.Reflection;
4 struct S
8 class Program
10 public static void Test (S s = default (S))
14 public static int Main ()
16 var t = typeof (Program).GetMethod ("Test");
17 var p = t.GetParameters ()[0];
18 if (p.RawDefaultValue != null)
19 return 1;
21 if (p.Attributes != (ParameterAttributes.Optional | ParameterAttributes.HasDefault))
22 return 2;
24 return 0;