nirum-lang / nirum

Nirum: IDL compiler and RPC/distributed object framework for microservices
https://nirum.org/
GNU General Public License v3.0
121 stars 28 forks source link

Annotate the most primitive type of boxed type #20

Closed kanghyojun closed 8 years ago

kanghyojun commented 8 years ago

A return type annotation of __nirum_serialize__ has to show the most primitive type of boxed type even if a boxed type boxes another boxed type.

For example:

boxed a (text);
boxed b (a);

It has to be represented in Python to:

class A:
    def __nirum_serialize__(self) -> str:
        ...

class B:
    def __nirum_serialize__(self) -> str:
        ...
dahlia commented 8 years ago

@admire93 Isn't this solved by the PR #5?

kanghyojun commented 8 years ago

@dahlia i think i reported this issue when i misunderstood about boxed type. Now boxed type shows appropriate annotation. so it have to be closed.