wyvernlang / wyvern

The Wyvern programming language.
http://wyvernlang.github.io/
GNU General Public License v2.0
556 stars 65 forks source link

Unable to define a resource type member #357

Open selvasamuel opened 5 years ago

selvasamuel commented 5 years ago

The following code gives a parse error:

type T
    resource type T2
    def fn(t: this.T2): Unit

Parse error: Encountered "def" at line 3, column 9.
Was expecting:
    <INDENT> ...
     at location file test.wyt on line 2 column 25