Merge: type works: handle implicitly fixed formal parameters
authorJean Privat <jean@pryen.org>
Mon, 28 Jul 2014 18:29:19 +0000 (14:29 -0400)
committerJean Privat <jean@pryen.org>
Mon, 28 Jul 2014 18:29:19 +0000 (14:29 -0400)
commitc4dad802d53fca28d42e34d61e0359b7797d1563
tree3f243c2ad2a4ecc9942a662fcee0ea9e78626633
parentf728dea1dbbbd0d7dcdda265a514b0b5c343be9d
parente790702417d6c5c4e78307b12c4a28830f6de0e4
Merge: type works: handle implicitly fixed formal parameters

~~~
class G[E: Int]
   # Here, since Int cannot have a subclass, then E == Int (implicitly fixed)
end
~~~

This series enhance the type system to understand this case, and give the user a warning when bounding formal parameter with final classes.

Pull-Request: #618
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
src/modelize_class.nit
src/typing.nit