You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transparentinlinegivenmkAnnotations[A, T] as Annotations[A, T] =${
88
88
// code producing a value of a subtype of Annotations
89
89
}
90
90
```
91
-
The type of an application of `mkAnnotations` is the type of its right hand side,
92
-
which can be a proper subtype of the declared result type `Annotations[A, T]`.
91
+
Since `mkAnnotations` is `transparent`, the type of an application is the type of its right hand side, which can be a proper subtype of the declared result type `Annotations[A, T]`.
93
92
94
93
## Given Instance Initialization
95
94
@@ -104,7 +103,7 @@ Here is the new syntax for given instances, seen as a delta from the [standard c
0 commit comments