From 9abb230790c1744cb71c67221a0a05639d35fdcb Mon Sep 17 00:00:00 2001 From: Dmitrii Naumenko Date: Mon, 29 Jul 2024 16:30:34 +0200 Subject: [PATCH] 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 --- docs/_docs/reference/changed-features/eta-expansion-spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_docs/reference/changed-features/eta-expansion-spec.md b/docs/_docs/reference/changed-features/eta-expansion-spec.md index 516764ef5370..24e3487fceeb 100644 --- a/docs/_docs/reference/changed-features/eta-expansion-spec.md +++ b/docs/_docs/reference/changed-features/eta-expansion-spec.md @@ -48,7 +48,7 @@ Methods with implicit parameter lists will always get applied to implicit argume def foo(x: Int)(implicit p: Double): Float = ??? implicit val bla: Double = 1.0 -val bar = foo // val bar: Int => Float = ... +val bar: Int => Float = foo // val bar: Int => Float = ... ``` ## Automatic Eta-Expansion and context types