diff options
author | dkf <dkf@noemail.net> | 2008-06-19 20:57:22 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2008-06-19 20:57:22 (GMT) |
commit | 8836a4142ff0c5676a9970d2fc57f2f873307cfd (patch) | |
tree | bba88a920aa2f5811ba58b084362cc6db0fbe7e3 /tests | |
parent | 611ace68f8c1dd1d1e4489531ccbbcfa03117b7b (diff) | |
download | tcl-8836a4142ff0c5676a9970d2fc57f2f873307cfd.zip tcl-8836a4142ff0c5676a9970d2fc57f2f873307cfd.tar.gz tcl-8836a4142ff0c5676a9970d2fc57f2f873307cfd.tar.bz2 |
Fix [Bug 1998221]
FossilOrigin-Name: 3b2afa4b8d9478eed17d259c9858b96653b745f6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/oo.test | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/oo.test b/tests/oo.test index a569b77..0362647 100644 --- a/tests/oo.test +++ b/tests/oo.test @@ -7,7 +7,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: oo.test,v 1.5 2008/05/31 22:29:46 dkf Exp $ +# RCS: @(#) $Id: oo.test,v 1.6 2008/06/19 20:57:23 dkf Exp $ package require TclOO 0.4 ;# Must match value in configure.in if {[lsearch [namespace children] ::tcltest] == -1} { @@ -1039,6 +1039,23 @@ test oo-14.7 {OO and filters from mixins of mixins} -setup { } [C new] foo } -result {(foo) (bar) (egg) chicken (egg) (bar) (foo)} +test oo-14.8 {OO: class mixin order - Bug 1998221} -setup { + set ::result {} + oo::class create master +} -cleanup { + master destroy +} -body { + oo::class create mix { + superclass master + method test {} {lappend ::result mix; next; return $::result} + } + oo::class create cls { + superclass master + mixin mix + method test {} {lappend ::result cls; next; return $::result} + } + [cls new] test +} -result {mix cls} test oo-15.1 {OO: object cloning} { oo::class create Aclass |