fix method modifier breakage on 5.10.0
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 29 Oct 2012 00:03:37 +0000 (00:03 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 29 Oct 2012 00:08:31 +0000 (00:08 +0000)
commitc49b0f7246784889a22207f69e841c88584bd812
tree348ab8870a82d93a287ff8228670082187e51e90
parentae410b049fc4eccd427837b4651181f659a06507
fix method modifier breakage on 5.10.0

Setting @ISA via the typeglob breaks inheritance on 5.10.0 if the stash
has previously been accessed an then a method called on the class (in
that order!).

Add test nicked from Moo that tickles the bug.
Changes
lib/Role/Tiny.pm
t/compose-modifiers.t [new file with mode: 0644]