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)
~~~
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>

1  2 
src/modelize_class.nit
src/typing.nit

Simple merge
diff --cc src/typing.nit
Simple merge