syntax: local variable assignment always cast
authorJean Privat <jean@pryen.org>
Mon, 22 Jun 2009 18:53:02 +0000 (14:53 -0400)
committerJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 19:48:18 +0000 (15:48 -0400)
commitea68346c56981fd8057cad9d0f313c120b6358ba
tree0b5b3eed2bec54f5e7ae25ae2361261dbff61424
parent264fd697a626adb8a21d4d497b2be5a9b2aa51cf
syntax: local variable assignment always cast

example:
  var a: A
  a = new B
  a.only_B_stuff # OK since the casted type of a is now B

Signed-off-by: Jean Privat <jean@pryen.org>
src/syntax/typing.nit
tests/test_id.nit
tests/test_isa.nit