From f9099791a1d8b88bd189f8952be6b1e40dda40ca Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Thu, 19 Dec 2013 09:10:45 -0800 Subject: [PATCH] Add another test for constructor syntax. --- test/constructor/infix_class_expression.wren | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/constructor/infix_class_expression.wren diff --git a/test/constructor/infix_class_expression.wren b/test/constructor/infix_class_expression.wren new file mode 100644 index 00000000..5451b72b --- /dev/null +++ b/test/constructor/infix_class_expression.wren @@ -0,0 +1,7 @@ +class Foo { + + other { return "Foo " + other } +} + +io.write(new Foo + "value") // expect: Foo value + +// TODO: Other expressions following a constructor, like new Foo.bar("arg").