File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
csharp/ql/test/library-tests/regressions Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1-
1+ // semmle-extractor-options: /langversion:8.0
22
33using System ;
44using System . Threading . Tasks ;
@@ -180,4 +180,13 @@ void F()
180180 }
181181}
182182
183+ class TupleMatching
184+ {
185+ ( int , object ) G ( object o1 , object o2 )
186+ {
187+ ( object , object ) ? pair = ( o1 , o2 ) ;
188+ return ( 0 , pair is var ( x , y ) ? x : null ) ;
189+ }
190+ }
191+
183192// semmle-extractor-options: /r:System.Dynamic.Runtime.dll
Original file line number Diff line number Diff line change 8282| Program.cs:169:5:169:10 | String |
8383| Program.cs:174:5:174:8 | Void |
8484| Program.cs:176:17:176:19 | IDisposable |
85+ | Program.cs:185:5:185:17 | (Int32,Object) |
86+ | Program.cs:185:6:185:8 | Int32 |
87+ | Program.cs:185:11:185:16 | Object |
88+ | Program.cs:185:21:185:26 | Object |
89+ | Program.cs:185:32:185:37 | Object |
90+ | Program.cs:187:9:187:24 | (Object,Object) |
91+ | Program.cs:187:9:187:25 | Nullable<(Object,Object)> |
92+ | Program.cs:187:10:187:15 | Object |
93+ | Program.cs:187:18:187:23 | Object |
You can’t perform that action at this time.
0 commit comments