syntax: move varctx initialization to the PClassdef
authorJean Privat <jean@pryen.org>
Fri, 3 Jul 2009 21:34:11 +0000 (17:34 -0400)
committerJean Privat <jean@pryen.org>
Sat, 4 Jul 2009 00:56:19 +0000 (20:56 -0400)
commit202acea3154f4314323b27cead1ab1d33ab7b429
tree08d24d543334a850ac7c157c3509f9d1d855609a
parent7f9790092b24d1b279f65293675dc0d50af2d486
syntax: move varctx initialization to the PClassdef

variable 'self' can now be accessed (even implicitly) in default
attribute definition.

A test base_attr_init_val3 is added.

Signed-off-by: Jean Privat <jean@pryen.org>
src/syntax/typing.nit
tests/base_attr_init_val3.nit [new file with mode: 0644]
tests/sav/base_attr_init_val3.sav [new file with mode: 0644]