Skip to content

Commit cc979d0

Browse files
committed
C#: Add switch case expression type test
1 parent 724baaf commit cc979d0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
| patterns.cs:101:34:101:40 | "large" | Int32 |
2+
| patterns.cs:102:18:102:24 | "small" | Int32 |
3+
| patterns.cs:110:22:110:26 | (..., ...) | (Int32,Int32) |
4+
| patterns.cs:111:22:111:26 | (..., ...) | (Int32,Int32) |
5+
| patterns.cs:117:27:117:33 | (..., ...) | (Int32,Int32) |
6+
| patterns.cs:118:28:118:34 | (..., ...) | (Int32,Int32) |
7+
| patterns.cs:119:33:119:38 | (..., ...) | (Int32,Int32) |
8+
| patterns.cs:128:49:128:49 | 0 | MyStruct |
9+
| patterns.cs:129:38:129:38 | 1 | MyStruct |
10+
| patterns.cs:130:23:130:23 | 2 | MyStruct |
11+
| patterns.cs:131:27:131:27 | 3 | MyStruct |
12+
| patterns.cs:138:22:138:50 | throw ... | Object |
13+
| patterns.cs:139:22:139:22 | 3 | Object |
14+
| patterns.cs:140:42:140:42 | 4 | Object |
15+
| patterns.cs:141:29:141:29 | 5 | Object |
16+
| patterns.cs:142:41:142:41 | 6 | Object |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import csharp
2+
3+
from SwitchCaseExpr case
4+
select case.getBody(), case.getType().toString()

0 commit comments

Comments
 (0)