Fix order in which classes get their traits imported
commit095c19b5c2403bc1d47f075178ec5187d6f0554f
authorottoni <ottoni@fb.com>
Fri, 16 Nov 2012 05:26:02 +0000 (15 21:26 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 16 Nov 2012 20:12:25 +0000 (16 12:12 -0800)
treee8b160be7ba0d101e07026074d789216fa06749d
parent872eeebdcb3175f6891bbb5b3cae17f61896dab8
Fix order in which classes get their traits imported

We were not enforcing that traits from base classes are imported
before importing traits in their derived classes.  This could result
in a derived class with an abstract trait method not "seeing" a
concrete definition of this method if the parent method got that
definition from a trait as well.  This would result in a "pure
virtual" fatal being thrown.
src/compiler/analysis/class_scope.cpp