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: src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs
+75Lines changed: 75 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14815,6 +14815,81 @@ static class E
14815
14815
}
14816
14816
}
14817
14817
14818
+
class C<T> { }
14819
+
""";
14820
+
varcomp=CreateCompilation(src);
14821
+
comp.VerifyEmitDiagnostics();
14822
+
14823
+
varexpectedOperationTree="""
14824
+
ITranslatedQueryOperation (OperationKind.TranslatedQuery, Type: C<System.String>) (Syntax: 'from int x ... .ToString()')
14825
+
Expression:
14826
+
IInvocationOperation ( C<System.String> E.<>E__0.SelectMany(System.Func<System.Int32, C<System.Int32>> collectionSelector, System.Func<System.Int32, System.Int32, System.String> resultSelector)) (OperationKind.Invocation, Type: C<System.String>, IsImplicit) (Syntax: 'from int y ... ew C<int>()')
14827
+
Instance Receiver:
14828
+
IInvocationOperation ( C<System.Int32> E.<>E__0.Cast<System.Int32>()) (OperationKind.Invocation, Type: C<System.Int32>, IsImplicit) (Syntax: 'from int x ... ew C<int>()')
0 commit comments