@@ -18,7 +18,7 @@ sealed trait State
18
18
final class On extends State
19
19
final class Off extends State
20
20
21
- @ implicitNotFound(" State is must be Off" )
21
+ @ implicitNotFound(" State must be Off" )
22
22
class IsOff [S <: State ]
23
23
object IsOff {
24
24
implicit def isOff : IsOff [Off ] = new IsOff [Off ]
@@ -32,7 +32,7 @@ val m = new Machine[Off]
32
32
m.turnedOn
33
33
m.turnedOn.turnedOn // ERROR
34
34
// ^
35
- // State is must be Off
35
+ // State must be Off
36
36
```
37
37
38
38
Note that in the code above the actual context arguments for ` IsOff ` are never
@@ -118,14 +118,14 @@ sealed trait State
118
118
final class On extends State
119
119
final class Off extends State
120
120
121
- @ implicitNotFound(" State is must be Off" )
121
+ @ implicitNotFound(" State must be Off" )
122
122
class IsOff [S <: State ]
123
123
object IsOff {
124
124
// will not be called at runtime for turnedOn, the compiler will only require that this evidence exists
125
125
given IsOff [Off ] = new IsOff [Off ]
126
126
}
127
127
128
- @ implicitNotFound(" State is must be On" )
128
+ @ implicitNotFound(" State must be On" )
129
129
class IsOn [S <: State ]
130
130
object IsOn {
131
131
// will not exist at runtime, the compiler will only require that this evidence exists at compile time
@@ -150,11 +150,11 @@ object Test {
150
150
151
151
// m.turnedOff
152
152
// ^
153
- // State is must be On
153
+ // State must be On
154
154
155
155
// m.turnedOn.turnedOn
156
156
// ^
157
- // State is must be Off
157
+ // State must be Off
158
158
}
159
159
}
160
160
```
@@ -196,4 +196,4 @@ object Test {
196
196
}
197
197
```
198
198
199
- [ More Details] ( ./erased-terms-spec.md )
199
+ [ More Details] ( ./erased-terms-spec.md )
0 commit comments