Add tests for more complex uses of the index operator

This commit is contained in:
Jason Turner 2011-06-10 11:18:58 -06:00
parent b064bb61e9
commit afae221cb3

View File

@ -0,0 +1,10 @@
// tests more complex parses of the index operator
def Bob::bob3() { return [1,2,3]; }
def Bob::Bob() {}
var b = Bob();
assert_equal(b.bob3()[0], 1);
assert_equal((b.bob3())[1, 2);