Table accesses with . not working

Create issue
Issue #16 resolved
mezzodrinker created an issue
$t = { foo = "blah" };
Print($t.foo);

This part of a script does not work. You can neither use $t.foo nor $t."foo" nor any other table access that begins with $t..

The error message is the following.

<script file>:<line> : no viable alternative at input '$t.foo'

Comments (5)

  1. Chimaine

    I can't replicate this with MTS 1.2.0.

    $t."foo" isn't supposed to work in the first place, that would be $t["foo"].

  2. Chimaine

    On the other side, I found a kind of related bug. Pushing 1.2.1 in a few, try again after it updated.

  3. Log in to comment