We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5664de0 commit 09a46f1Copy full SHA for 09a46f1
docs/docs/reference/contextual/givens.md
@@ -111,6 +111,10 @@ trait Show[T] {
111
inline given Show[Foo] with {
112
/*transparent*/ inline def show(x: Foo): String = ${ ... }
113
}
114
+
115
+def app =
116
+ // inlines `show` method call and removes the call to `given Show[Foo]`
117
+ summon[Show[Foo]].show(foo)
118
```
119
Note that the inline methods within the given instances may be `transparent`.
120
0 commit comments