Skip to content

Commit ec43901

Browse files
authored
Add explicit return type to outdated def line
1 parent d8ccae0 commit ec43901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/reflection/symbols-trees-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ there’s already a `parse` method built into the macro context. For example:
707707
scala> def impl(c: scala.reflect.macros.Context) = c.Expr[Unit](c.parse("println(2)"))
708708
impl: (c: scala.reflect.macros.Context)c.Expr[Unit]
709709

710-
scala> def test = macro impl
710+
scala> def test: Unit = macro impl
711711
test: Unit
712712

713713
scala> test

0 commit comments

Comments
 (0)