File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ These are useful to prove static properties of the code using type evidences.
12
12
As they have no effect on the runtime they can be erased from the resulting code by
13
13
the compiler once it has shown the constraints hold.
14
14
15
- When saying that a they have no effect on the runtime we do not only mean side effects
15
+ When saying that they have no effect on the runtime we do not only mean side effects
16
16
like IO, field mutation, exceptions and so on. We also imply that if a function receives
17
17
a phantom its result will not be affected by this argument.
18
18
@@ -79,7 +79,7 @@ from outside `MyPhantoms` unless an alias is defined for them.
79
79
80
80
New phantom types can be defined using ` type XYZ <: OtherPhantom ` (where ` >: MyPhantom.Nothing `
81
81
will be inferred), this would be the equivalent of ` class XYZ extends OtherClass ` on a types
82
- only (no runtime definitions). Or aliased with ` type MyAny = OtherPhantom ` . Whitin ` MyPhantoms `
82
+ only (no runtime definitions). Or aliased with ` type MyAny = OtherPhantom ` . Within ` MyPhantoms `
83
83
it is possible to refer to ` MyPhantoms.Any ` and ` MyPhantoms.Nothing ` with ` this.Any ` and
84
84
` this.Nothing ` (or just ` Any ` and ` Nothing ` but not recommended). Using this we will define
85
85
four the four phantoms: ` Inky ` , ` Blinky ` , ` Pinky ` and ` Clyde ` .
You can’t perform that action at this time.
0 commit comments