PageRenderTime 14ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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--
15deferred 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
21feature {LIBERTY_ACTUAL_TYPE}
22   inherits (parent, child: LIBERTY_KNOWN_TYPE): BOOLEAN is
23      require
24         parent.name = child.name
25      deferred
26      end
27
28   inserts (parent, child: LIBERTY_KNOWN_TYPE): BOOLEAN is
29      require
30         parent.name = child.name
31      deferred
32      end
33
34end -- class LIBERTY_GENERICS_CONFORMANCE_CHECKER