/src/tools/semantics/types/liberty_generics_conformance_checker.e

http://github.com/tybor/Liberty · Specman e · 34 lines · 13 code · 3 blank · 18 comment · 0 complexity · cb293c1bac65b790ad970adbd027dbb6 MD5 · raw file

  1. -- This file is part of Liberty Eiffel.
  2. --
  3. -- Liberty Eiffel is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, version 3 of the License.
  6. --
  7. -- Liberty Eiffel is distributed in the hope that it will be useful,
  8. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. -- GNU General Public License for more details.
  11. --
  12. -- You should have received a copy of the GNU General Public License
  13. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  14. --
  15. deferred class LIBERTY_GENERICS_CONFORMANCE_CHECKER
  16. --
  17. -- Reifies special conformance rules for generic classes (different rule sets for classical generics,
  18. -- tuples, and agents)
  19. --
  20. feature {LIBERTY_ACTUAL_TYPE}
  21. inherits (parent, child: LIBERTY_KNOWN_TYPE): BOOLEAN is
  22. require
  23. parent.name = child.name
  24. deferred
  25. end
  26. inserts (parent, child: LIBERTY_KNOWN_TYPE): BOOLEAN is
  27. require
  28. parent.name = child.name
  29. deferred
  30. end
  31. end -- class LIBERTY_GENERICS_CONFORMANCE_CHECKER