|
1 | 1 | module RBS |
2 | 2 | module Ops |
3 | 3 | # An interface for types implementing the `+` operator |
4 | | - interface _Add[O, R = self] |
| 4 | + interface _Add[O, R] |
5 | 5 | # Perform the `+` operation |
6 | 6 | def +: (O other) -> R |
7 | 7 | end |
8 | 8 |
|
9 | 9 | # An interface for types implementing the `-` operator |
10 | | - interface _Subtract[O, R = self] |
| 10 | + interface _Subtract[O, R] |
11 | 11 | # Perform the `-` operation |
12 | 12 | def -: (O other) -> R |
13 | 13 | end |
14 | 14 |
|
15 | 15 | # An interface for types implementing the `*` operator |
16 | | - interface _Times[O, R = self] |
| 16 | + interface _Times[O, R] |
17 | 17 | # Perform the `*` operation |
18 | 18 | def *: (O other) -> R |
19 | 19 | end |
20 | 20 |
|
21 | 21 | # An interface for types implementing the `/` operator |
22 | | - interface _Divide[O, R = self] |
| 22 | + interface _Divide[O, R] |
23 | 23 | # Perform the `/` operation |
24 | 24 | def /: (O other) -> R |
25 | 25 | end |
26 | 26 |
|
27 | 27 | # An interface for types implementing the `%` operator |
28 | | - interface _Modulo[O, R = self] |
| 28 | + interface _Modulo[O, R] |
29 | 29 | # Perform the `%` operation |
30 | 30 | def %: (O other) -> R |
31 | 31 | end |
32 | 32 |
|
33 | 33 | # An interface for types implementing the `**` operator |
34 | | - interface _Power[O, R = self] |
| 34 | + interface _Power[O, R] |
35 | 35 | # Perform the `**` operation |
36 | 36 | def **: (O other) -> R |
37 | 37 | end |
@@ -67,49 +67,49 @@ module RBS |
67 | 67 | end |
68 | 68 |
|
69 | 69 | # An interface for types implementing the `&` operator |
70 | | - interface _And[O, R = self] |
| 70 | + interface _And[O, R] |
71 | 71 | # Perform the `&` operation |
72 | 72 | def &: (O other) -> R |
73 | 73 | end |
74 | 74 |
|
75 | 75 | # An interface for types implementing the `|` operator |
76 | | - interface _Or[O, R = self] |
| 76 | + interface _Or[O, R] |
77 | 77 | # Perform the `|` operation |
78 | 78 | def |: (O other) -> R |
79 | 79 | end |
80 | 80 |
|
81 | 81 | # An interface for types implementing the `^` operator |
82 | | - interface _Xor[O, R = self] |
| 82 | + interface _Xor[O, R] |
83 | 83 | # Perform the `^` operation |
84 | 84 | def ^: (O other) -> R |
85 | 85 | end |
86 | 86 |
|
87 | 87 | # An interface for types implementing the `<<` operator |
88 | | - interface _LeftShift[O, R = self] |
| 88 | + interface _LeftShift[O, R] |
89 | 89 | # Perform the `<<` operation |
90 | 90 | def <<: (O other) -> R |
91 | 91 | end |
92 | 92 |
|
93 | 93 | # An interface for types implementing the `>>` operator |
94 | | - interface _RightShift[O, R = self] |
| 94 | + interface _RightShift[O, R] |
95 | 95 | # Perform the `>>` operation |
96 | 96 | def >>: (O other) -> R |
97 | 97 | end |
98 | 98 |
|
99 | 99 | # An interface for types implementing the `~` operator |
100 | | - interface _Not[R = self] |
| 100 | + interface _Not[R] |
101 | 101 | # Perform the `~` operation |
102 | 102 | def ~: () -> R |
103 | 103 | end |
104 | 104 |
|
105 | 105 | # An interface for types implementing the `+@` operator |
106 | | - interface _UnaryPos[R = self] |
| 106 | + interface _UnaryPos[R] |
107 | 107 | # Perform the `+@` operation |
108 | 108 | def +@: () -> R |
109 | 109 | end |
110 | 110 |
|
111 | 111 | # An interface for types implementing the `-@` operator |
112 | | - interface _UnaryNeg[R = self] |
| 112 | + interface _UnaryNeg[R] |
113 | 113 | # Perform the `-@` operation |
114 | 114 | def -@: () -> R |
115 | 115 | end |
|
0 commit comments