mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
11 lines
187 B
ChaiScript
11 lines
187 B
ChaiScript
|
|
// tests more complex parses of the index operator
|
|
|
|
def Bob::bob3() { return {1,2,3}; }
|
|
def Bob::Bob() {}
|
|
auto b = Bob();
|
|
|
|
|
|
assert_equal(b.bob3()[0], 1);
|
|
assert_equal((b.bob3())[1], 2);
|