Skip to content

Commit 9abb230

Browse files
authored
changed-features/eta-expansion-spec.md : add expected type to example
Current code produces compilation error: "missing argument list for method foo" The example requires an expected type to compile
1 parent 3c29355 commit 9abb230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/changed-features/eta-expansion-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Methods with implicit parameter lists will always get applied to implicit argume
4848
def foo(x: Int)(implicit p: Double): Float = ???
4949
implicit val bla: Double = 1.0
5050

51-
val bar = foo // val bar: Int => Float = ...
51+
val bar: Int => Float = foo // val bar: Int => Float = ...
5252
```
5353

5454
## Automatic Eta-Expansion and context types

0 commit comments

Comments
 (0)