@@ -84,7 +84,7 @@ Return LastName & "" "" & FirstName
8484 Return FirstName & "" "" & LastName
8585 End If
8686 End Get
87- ' Bug: Comment moves inside generated method
87+ ' This comment belongs to the set method
8888 Friend Set
8989 If isFirst Then FirstName = Value
9090 End Set
@@ -110,9 +110,8 @@ public string get_FullName(bool lastNameFirst, bool isFirst)
110110 {
111111 return FirstName + "" "" + LastName;
112112 }
113- // Bug: Comment moves inside generated method
114113 }
115-
114+ // This comment belongs to the set method
116115 internal void set_FullName(bool lastNameFirst, bool isFirst, string value)
117116 {
118117 if (isFirst)
@@ -176,7 +175,7 @@ Public Property FullName(Optional ByVal isFirst As Boolean = False) As String
176175 Get
177176 Return FirstName & "" "" & LastName
178177 End Get
179- 'Bug: Comment moves inside generated get method
178+ 'This comment belongs to the set method
180179 Friend Set
181180 If isFirst Then FirstName = Value
182181 End Set
@@ -197,9 +196,8 @@ internal partial class TestClass
197196 public string get_FullName(bool isFirst = false)
198197 {
199198 return FirstName + "" "" + LastName;
200- // Bug: Comment moves inside generated get method
201199 }
202-
200+ // This comment belongs to the set method
203201 internal void set_FullName(bool isFirst = false, string value = default)
204202 {
205203 if (isFirst)
0 commit comments