1 // Compiler options: -langversion:experimental
4 class DeclarationExpression
6 public static int Main ()
12 if (Out (out int o1
)) {
29 Ref (ref ((var r2
= 3)));
33 // Out2 (str: "b", v: out var o5);
37 Out3 (out var o6
= 9m
);
38 if (o6
.GetType () != typeof (decimal))
41 Console
.WriteLine ("ok");
45 static bool Out (out int value)
51 static bool Out2 (out int v
, string str
)
57 static void Out3
<T
> (out T t
)
62 static void Ref (ref int arg
)