model: remove a lot of casts to MGenericType
authorJean Privat <jean@pryen.org>
Tue, 6 Nov 2012 05:26:42 +0000 (00:26 -0500)
committerJean Privat <jean@pryen.org>
Tue, 6 Nov 2012 05:26:42 +0000 (00:26 -0500)
commit9664fd2fbd7fba536fe3057f712db468d62f18ce
tree77833c0d0af4b7dfe89f2e0986e518bf72a2d8ec
parentfc2b2441a03b40b49576f907c2b7b5f99bc20c43
model: remove a lot of casts to MGenericType

Since the generalization of MGenericType::arguments,
MGenericType do not introduce specific methods anymore.
Therefore, there is no point to require specific type or casts in clients.

This simplify the code since now a MClass, a MClassDef and a MClassType
can all be used to designate an entity, generic or not.

Signed-off-by: Jean Privat <jean@pryen.org>
src/global_compiler.nit
src/interpretor_type_test.nit
src/model/model.nit
src/modelbuilder.nit
src/naive_interpreter.nit
src/rapid_type_analysis.nit
src/typing.nit