Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (11 sloc) 0.407 kb
use v6;
use Test;
plan 2;
=begin pod
A class can only derive already declared classes.
=end pod
# L<S12/Classes/"bare class names must be predeclared">
# need eval_lives_ok here because class declarations happen at compile time
eval_lives_ok ' class A {}; class B is A {}; ', "base before derived: lives";
eval_dies_ok ' class D is C {}; class C {}; ', "derived before base: dies";
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.