Skip to content

Commit

Permalink
Fixed return type of Recoder#apply in Dotty
Browse files Browse the repository at this point in the history
  • Loading branch information
Baccata committed Jul 25, 2019
1 parent bda6427 commit 4122318
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import language.experimental.macros

abstract class Recorder[R, A] {
def listener: RecorderListener[R, A]
inline def apply(recording: R): Unit =
inline def apply(recording: R): A =
${ RecorderMacro.apply('recording, 'listener) }
inline def apply(recording: R, message: => String): A =
${ RecorderMacro.apply('recording, 'message, 'listener) }
Expand Down

0 comments on commit 4122318

Please sign in to comment.