Skip to content

Commit 7e63704

Browse files
authored
Use more precise explanation for opaque transparency
1 parent fdb901c commit 7e63704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/other-new-features/opaques.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,6 @@ val z = l2(3.1)
174174
l1.mul(x, y) // type checks
175175
l1.mul(x, z) // error: found l2.Logarithm, required l1.Logarithm
176176
```
177-
In general, one can think of an opaque type as being only transparent in the scope of `private[this]`.
177+
In general, one can think of an opaque type as being only transparent in the scope of `private[this]` (unless the type is a top level definition - in this case, it's transparent only within the file it's defined in).
178178

179179
[More details](opaques-details.md)

0 commit comments

Comments
 (0)