Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We pass 25-class.t.
  • Loading branch information
jnthn committed Jan 28, 2013
1 parent c1b6aa1 commit ef24e8b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions t/nqp/25-class.t
@@ -0,0 +1,29 @@
#!./parrot nqp.pbc

# class

plan(2);

class XYZ {
method foo($x) {
say($x);
}
}

my $xyz := XYZ.new();

$xyz.foo('ok 1');


# test that a class can start with Q

class QRS {
method foo($x) {
say($x);
}
}

my $qrs := QRS.new();

$qrs.foo('ok 2');

0 comments on commit ef24e8b

Please sign in to comment.