We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b75d31 commit 8f555d1Copy full SHA for 8f555d1
jscomp/test/FirstClassDicts.res
@@ -3,17 +3,15 @@ module CreateAndLookup = {
3
4
let test_create: myDict = {name: "hello", something: 5}
5
6
- let test_lookup = (d: myDict) : option<int> => d.something
+ let test_lookup = (d: myDict): option<int> => d.something
7
}
8
9
-
10
module Update = {
11
type myDict = {name?: string, mutable anyOtherField?: int}
12
13
let test_update = (d: myDict) => d.something = Some(10)
14
15
16
17
module PatternMatching = {
18
type myDict = {name?: string, anyOtherField?: int}
19
0 commit comments