moose/moose — pull request #34 by Kuraiou (2013-09-04 14:23:17+00:00)
Title: Test to prove bug when composing broken roles succeeding after first try...

There is a bug where, when using create_anon_class to compose a role onto a class, if any of the roles fail for any reason, it will correctly die the first time you do this -- but it will succeed on any subsequent attempts. If anyone is wrapping some (or all!) of their code in eval or try/catch blocks, this may result in unexpected behavior that is difficult to debug due to the developer not receiving the correct errors in the bad file.