note description: "A feature precursor should be instance-free if the feature redeclaration is instance-free." class VDRD9_NEW inherit VDRD_NEW redefine build_explain, print_error_message, print_single_line_error_message end create {COMPILER_EXPORTER} make feature -- Access subcode: INTEGER = 9 -- feature {NONE} -- Output print_error_message (t: TEXT_FORMATTER) -- do print_error_code (t) t.add_new_line format_elements (t, locale.translation_in_context ({STRING_32} "[ Class routine {1} has precursor {2} from class {4} that is not instance-free. What to do: • make sure the precursor is instance-free or • make sure the redeclaration is not a class routine or • remove the redeclaration. ]", "eiffel.error"), << agent feature_1.append_name, agent feature_2.append_name, agent (feature_1.written_class).append_name, agent (feature_2.written_class).append_name >>) -- Make sure any other information about the error comes at a new line. t.add_new_line t.add_new_line end print_single_line_error_message (t: TEXT_FORMATTER) -- do format_elements (t, locale.translation_in_context ("Precursor {2} from class {4} of class routine {1} is not instance-free.", "eiffel.error"), << agent feature_1.append_name, agent feature_2.append_name, agent (feature_1.written_class).append_name, agent (feature_2.written_class).append_name >>) end build_explain (t: TEXT_FORMATTER) -- do format_elements (t, locale.translation_in_context ("{1} from class {2} is a class feature.", "eiffel.error"), << agent feature_1.append_name, agent (feature_1.written_class).append_name >>) t.add_new_line format_elements (t, locale.translation_in_context ("{1} from class {2} is not an instance-free feature.", "eiffel.error"), << agent feature_2.append_name, agent (feature_2.written_class).append_name >>) t.add_new_line end note date: "$Date$"; revision: "$Revision$" copyright: "Copyright (c) 1984-2018, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end