Skip to content

Commit 41cca47

Browse files
authored
Merge pull request #15426 from michaelnebel/csharp/collectionexpressions
C# 12: Support for collection expressions.
2 parents 78d5d9a + cda0947 commit 41cca47

File tree

25 files changed

+9217
-552
lines changed

25 files changed

+9217
-552
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Expression extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class TypeOrRef extends @type_or_ref {
6+
string toString() { none() }
7+
}
8+
9+
from Expression e, int k, int kind, TypeOrRef t
10+
where
11+
expressions(e, k, t) and
12+
if k = [136, 137] then kind = 106 else kind = k
13+
select e, kind, t

0 commit comments

Comments
 (0)