3
3
module C0 = {
4
4
type props<'priority, 'text> = {priority: 'priority, text?: 'text}
5
5
6
- let make = ({priority: _, ? text, _}: props<_, _>) => {
7
- let text = switch text {
6
+ let make = ({priority: _, text: ?__text , _}: props<_, _>) => {
7
+ let text = switch __text {
8
8
| Some(text) => text
9
9
| None => "Test"
10
10
}
@@ -21,8 +21,8 @@ module C0 = {
21
21
module C1 = {
22
22
type props<'priority, 'text> = {priority: 'priority, text?: 'text}
23
23
24
- let make = ({priority: p, ? text, _}: props<_, _>) => {
25
- let text = switch text {
24
+ let make = ({priority: p, text: ?__text , _}: props<_, _>) => {
25
+ let text = switch __text {
26
26
| Some(text) => text
27
27
| None => "Test"
28
28
}
@@ -39,8 +39,8 @@ module C1 = {
39
39
module C2 = {
40
40
type props<'foo> = {foo?: 'foo}
41
41
42
- let make = ({foo: ?bar , _}: props<_>) => {
43
- let bar = switch bar {
42
+ let make = ({foo: ?__bar , _}: props<_>) => {
43
+ let bar = switch __bar {
44
44
| Some(foo) => foo
45
45
| None => ""
46
46
}
@@ -57,12 +57,12 @@ module C2 = {
57
57
module C3 = {
58
58
type props<'foo, 'a, 'b> = {foo?: 'foo, a?: 'a, b: 'b}
59
59
60
- let make = ({foo: ?bar, ?a , b, _}: props<_, _, _>) => {
61
- let bar = switch bar {
60
+ let make = ({foo: ?__bar, a: ?__a , b, _}: props<_, _, _>) => {
61
+ let bar = switch __bar {
62
62
| Some(foo) => foo
63
63
| None => ""
64
64
}
65
- let a = switch a {
65
+ let a = switch __a {
66
66
| Some(a) => a
67
67
| None => bar
68
68
}
@@ -81,8 +81,8 @@ module C3 = {
81
81
module C4 = {
82
82
type props<'a, 'x> = {a: 'a, x?: 'x}
83
83
84
- let make = ({a: b, ?x , _}: props<_, _>) => {
85
- let x = switch x {
84
+ let make = ({a: b, x: ?__x , _}: props<_, _>) => {
85
+ let x = switch __x {
86
86
| Some(x) => x
87
87
| None => true
88
88
}
@@ -99,8 +99,8 @@ module C4 = {
99
99
module C5 = {
100
100
type props<'a, 'z> = {a: 'a, z?: 'z}
101
101
102
- let make = ({a: (x, y), ?z , _}: props<_, _>) => {
103
- let z = switch z {
102
+ let make = ({a: (x, y), z: ?__z , _}: props<_, _>) => {
103
+ let z = switch __z {
104
104
| Some(z) => z
105
105
| None => 3
106
106
}
0 commit comments