typing: `intern` is used to refer to the plain vanilla constructor
authorJean Privat <jean@pryen.org>
Fri, 10 Apr 2015 05:16:03 +0000 (12:16 +0700)
committerJean Privat <jean@pryen.org>
Fri, 10 Apr 2015 05:16:03 +0000 (12:16 +0700)
commit893e580751fdb12fbb5b0b819d364309488a852c
tree4d50df80ff16cec7ac5ba0f3fe009b4d7c370a75
parent2f986a5184ff85f8e7969c00c86af069d414cbd3
typing: `intern` is used to refer to the plain vanilla constructor

It is used to implement specific factories inside classes

~~~
class A
   new do
      var res = new A.intern
      res.do_things
      return res
   end
end
~~~

Signed-off-by: Jean Privat <jean@pryen.org>
src/semantize/typing.nit