Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
LIGO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
ligolang
LIGO
Merge requests
!1973
Jsligo discriminatory union
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jsligo discriminatory union
jsligo_discriminatory_union
into
dev
Overview
23
Commits
35
Pipelines
29
Changes
10
Merged
Sander
requested to merge
jsligo_discriminatory_union
into
dev
2 years ago
Overview
4
Commits
35
Pipelines
29
Changes
1
Expand
type:added
Adds support for limited discriminatory unions.
Limitations:
not supported: a catch-all construct in the switch statement. We always expect all the variants of the type to be used.
it will not be possible to change a variant after initialization
it’s always expected that the input of the Switch statement is like this: foo.bar as the last .bar part will be removed.
Changelog details:
JsLIGO: Add support for discriminatory unions.
0
0
Merge request reports
Compare
version 10
version 28
b046d78a
2 years ago
version 27
d1bc957e
2 years ago
version 26
4b38e93e
2 years ago
version 25
1e731c7a
2 years ago
version 24
b74e9e8d
2 years ago
version 23
4f16196d
2 years ago
version 22
7ea77804
2 years ago
version 21
a6f6d010
2 years ago
version 20
e43d8ebf
2 years ago
version 19
e43d8ebf
2 years ago
version 18
c0323d65
2 years ago
version 17
da47a0a7
2 years ago
version 16
d4309fd3
2 years ago
version 15
ac26fa6f
2 years ago
version 14
1ea275e7
2 years ago
version 13
f1646acc
2 years ago
version 12
113e97d4
2 years ago
version 11
90feb1a9
2 years ago
version 10
3bf134a6
2 years ago
version 9
62cb0588
2 years ago
version 8
18a9f625
2 years ago
version 7
8b6c5473
2 years ago
version 6
950036ee
2 years ago
version 5
97492250
2 years ago
version 4
ad3b1b97
2 years ago
version 3
e1032251
2 years ago
version 2
9537f1de
2 years ago
version 1
72707066
2 years ago
dev (base)
and
version 11
latest version
73847ee3
35 commits,
2 years ago
version 28
b046d78a
34 commits,
2 years ago
version 27
d1bc957e
33 commits,
2 years ago
version 26
4b38e93e
32 commits,
2 years ago
version 25
1e731c7a
31 commits,
2 years ago
version 24
b74e9e8d
30 commits,
2 years ago
version 23
4f16196d
27 commits,
2 years ago
version 22
7ea77804
25 commits,
2 years ago
version 21
a6f6d010
24 commits,
2 years ago
version 20
e43d8ebf
23 commits,
2 years ago
version 19
e43d8ebf
28 commits,
2 years ago
version 18
c0323d65
27 commits,
2 years ago
version 17
da47a0a7
26 commits,
2 years ago
version 16
d4309fd3
24 commits,
2 years ago
version 15
ac26fa6f
23 commits,
2 years ago
version 14
1ea275e7
22 commits,
2 years ago
version 13
f1646acc
21 commits,
2 years ago
version 12
113e97d4
20 commits,
2 years ago
version 11
90feb1a9
19 commits,
2 years ago
version 10
3bf134a6
18 commits,
2 years ago
version 9
62cb0588
17 commits,
2 years ago
version 8
18a9f625
16 commits,
2 years ago
version 7
8b6c5473
15 commits,
2 years ago
version 6
950036ee
14 commits,
2 years ago
version 5
97492250
13 commits,
2 years ago
version 4
ad3b1b97
12 commits,
2 years ago
version 3
e1032251
11 commits,
2 years ago
version 2
9537f1de
9 commits,
2 years ago
version 1
72707066
8 commits,
2 years ago
Show latest version
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gitlab-pages/docs/language-basics/unit-option-pattern-matching.md
+
2
−
0
Options
@@ -117,6 +117,8 @@ switch(foo.kind) {
state -= foo.amount;
break
}
```
</Syntax>
Loading