/test/language/error_warning_msg/bad_inherit13.e
Specman e | 60 lines | 31 code | 7 blank | 22 comment | 0 complexity | 62f12a4fc51eceef4f26369f1a1f2552 MD5 | raw file
1-- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries. 2-- See the Copyright notice at the end of this file. 3-- 4class BAD_INHERIT13 5 -- From lib_test1/test_inherit6.e 6 7inherit 8 AUX_INHERIT13A 9 AUX_INHERIT13B 10 undefine foo2, count 11 end 12 13create {} 14 make 15 16feature {} 17 make 18 local 19 a: AUX_INHERIT13A 20 b: AUX_INHERIT13B 21 do 22 foo 23 bar 24 foo2 25 26 a := Current 27 b := Current 28 29 a.foo 30 a.bar 31 a.foo2 32 b.foo 33 b.bar 34 b.foo2 35 end; 36 37 foo 38 do 39 count := count + 1; 40 end; 41 42end -- class BAD_INHERIT13 43-- 44-- ------------------------------------------------------------------------------------------------------------------------------ 45-- Copyright notice below. Please read. 46-- 47-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 48-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 49-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 50-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 51-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 52-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 53-- 54-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 55-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 56-- 57-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 58-- 59-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 60-- ------------------------------------------------------------------------------------------------------------------------------