diff options
Diffstat (limited to 'mcs/errors/cs0171-6.cs')
-rw-r--r-- | mcs/errors/cs0171-6.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0171-6.cs b/mcs/errors/cs0171-6.cs new file mode 100644 index 0000000000..e968f1ae32 --- /dev/null +++ b/mcs/errors/cs0171-6.cs @@ -0,0 +1,18 @@ +// CS0171: Field `S.value' must be fully assigned before control leaves the constructor +// Line: 10 + +using System; + +struct S +{ + string value; + + public S (int arg) + { + if (arg > 0) { + return; + } + + throw new ApplicationException (); + } +} |