File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ following operations would be valid because they use functionality implemented i
47
47
But the following operations would lead to type errors:
48
48
49
49
``` scala
50
- val d : Double = l // error: found: Logarithm, required: Double
51
- val l2 : Logarithm = 1.0 // error: found: Double, required: Logarithm
52
- l * 2 // error: found: Int(2), required: Logarithm
53
- l / l2 // error: `/` is not a member fo Logarithm
50
+ val d : Double = l // error: found: Logarithm, required: Double
51
+ val l2 : Logarithm = 1.0 // error: found: Double, required: Logarithm
52
+ l * 2 // error: found: Int(2), required: Logarithm
53
+ l / l2 // error: `/` is not a member fo Logarithm
54
54
```
55
55
56
56
For more details, see [ Scala SIP 35] ( https://docs.scala-lang.org/sips/opaque-types.html ) .
You can’t perform that action at this time.
0 commit comments