Skip to content

Commit

Permalink
use whitespace to define subsignature for unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
pnu committed Dec 30, 2014
1 parent a0e685f commit f8f4e1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions t/08-callbacks.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class Struct is repr('CStruct') {
}
}

sub TakeACallback(&cb()) is native('./08-callbacks') { * }
sub TakeIntCallback(&cb(int)) is native('./08-callbacks') { * }
sub TakeStringCallback(&cb(Str)) is native('./08-callbacks') { * }
sub TakeStructCallback(&cb(Struct)) is native('./08-callbacks') { * }

sub CheckReturnsFloat(&cb(--> num)) is native('./08-callbacks') { * }
sub CheckReturnsStr(&cb(--> Str)) is native('./08-callbacks') { * }
sub CheckReturnsStruct(&cb(--> Struct)) is native('./08-callbacks') { * }
sub TakeACallback(&cb ()) is native('./08-callbacks') { * }
sub TakeIntCallback(&cb (int)) is native('./08-callbacks') { * }
sub TakeStringCallback(&cb (Str)) is native('./08-callbacks') { * }
sub TakeStructCallback(&cb (Struct)) is native('./08-callbacks') { * }

sub CheckReturnsFloat(&cb (--> num)) is native('./08-callbacks') { * }
sub CheckReturnsStr(&cb (--> Str)) is native('./08-callbacks') { * }
sub CheckReturnsStruct(&cb (--> Struct)) is native('./08-callbacks') { * }

sub simple_callback() {
pass 'simple callback';
Expand Down

0 comments on commit f8f4e1b

Please sign in to comment.