You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/CSharp/ExpressionTests/XmlExpressionTests.cs
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,30 @@ private void TestMethod()
120
120
3 target compilation errors:
121
121
CS0029: Cannot implicitly convert type 'System.Xml.Linq.XElement' to 'System.Xml.Linq.XDocument'
122
122
CS1061: 'IEnumerable<XElement>' does not contain a definition for 'Value' and no accessible extension method 'Value' accepting a first argument of type 'IEnumerable<XElement>' could be found (are you missing a using directive or an assembly reference?)
123
-
CS0103: The name 'TransformDescription' does not exist in the current context");
123
+
CS0103: The name 'TransformDescription' does not exist in the current context",
Dim c = <someXmlTag><bla anAttribute=""itsValue"">tata</bla><someContent>tata</someContent></someXmlTag>
133
-
End Sub
134
-
End Class",@"using System.Xml.Linq;
135
-
136
-
internal partial class TestClass
137
-
{
138
-
private void TestMethod()
139
-
{
140
-
XElement b = XElement.Parse(""<someXmlTag></someXmlTag>"");
141
-
XElement c = XElement.Parse(""<someXmlTag><bla anAttribute=\""itsValue\"">tata</bla><someContent>tata</someContent></someXmlTag>"");
142
-
}
143
-
}");
144
-
}
145
-
146
126
/// <summary>
147
127
/// Implicitly typed lambdas exist in vb but are not happening in C#. See discussion on https://github.com/dotnet/roslyn/issues/14
148
128
/// * For VB local declarations, inference happens. The closest equivalent in C# is a local function since Func/Action would be overly restrictive for some cases
0 commit comments