summaryrefslogtreecommitdiffstats
path: root/testing/066_property_initializer.cs
diff options
context:
space:
mode:
authorPiotr Szydełko <wiertel@wiertel.info>2017-05-20 06:14:27 (GMT)
committerPiotr Szydełko <wiertel@wiertel.info>2017-05-20 06:21:46 (GMT)
commit14a0bcc74a121525917aefc8c9034e283e94884b (patch)
treec670f763cadf60fe637252211628751f5af464ce /testing/066_property_initializer.cs
parent88ff6e5931896a0798997a226e846e75a99f8802 (diff)
downloadDoxygen-14a0bcc74a121525917aefc8c9034e283e94884b.zip
Doxygen-14a0bcc74a121525917aefc8c9034e283e94884b.tar.gz
Doxygen-14a0bcc74a121525917aefc8c9034e283e94884b.tar.bz2
Fix C# property initializer parsing
int Property {get; set;} = 23; The parser was ending the property at the closing bracket, which resulted in the initializer being assigned to the following property.
Diffstat (limited to 'testing/066_property_initializer.cs')
-rw-r--r--testing/066_property_initializer.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/066_property_initializer.cs b/testing/066_property_initializer.cs
new file mode 100644
index 0000000..d5b5c59
--- /dev/null
+++ b/testing/066_property_initializer.cs
@@ -0,0 +1,7 @@
+// objective: C# property initializer
+// check: class_class1.xml
+class Class1
+{
+ public int Property1 { get; } = 1;
+ public string Property2 { get; set; }
+}