Skip to content

Commit 486d2ed

Browse files
committed
Merge pull request scala#240 from xeno-by/master
fixes a typo in an implicit macro guide
2 parents f33eb0c + 98d37bc commit 486d2ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviews/macros/implicits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ which represents isomorphisms between types. `Iso` can be used to map cases clas
119119
tp == (23, "foo", true)
120120

121121
If we try to write an implicit materializer for `Iso`, we will run into a wall.
122-
When typechecking applications of methods like `foo`, scalac has to infer the type argument `L`,
122+
When typechecking applications of methods like `conv`, scalac has to infer the type argument `L`,
123123
which it has no clue about (and that's no wonder, since this is domain-specific knowledge). As a result, when we define an implicit
124124
macro, which synthesizes `Iso[C, L]`, scalac will helpfully infer `L` as `Nothing` before expanding the macro and then everything will crumble.
125125

0 commit comments

Comments
 (0)