public void testParameterIsUsedAfterCall() throws Throwable { doTest(); }
public void testFieldAsParameter() throws Throwable { doTest(); }
public void testWritableVariable() throws Throwable { doTest(); }
+ public void testInlineInGString() throws Throwable {doTest(); }
public void testInlineAll() throws Throwable {
doTest(new GroovyInlineHandler() {
public void testVar4() throws Throwable { doTest(); }
public void testVar5() throws Throwable { doTest(); }
public void testVar6() throws Throwable { doTest(); }
+ public void testVarInGString() throws Throwable { doTest(); }
+ public void testVarInGString2() throws Throwable { doTest(); }
protected void doTest() throws IncorrectOperationException, InvalidDataException, IOException {
InlineMethodTest.doInlineTest(myFixture, getTestDataPath() + getTestName(true) + ".test", true, new GroovyInlineHandler());
--- /dev/null
+def <begin>s<end>="$x+$y"
+print "${s}wow+$s"
+-----
+<caret>print "$x+${y}wow+$x+$y"
\ No newline at end of file
--- /dev/null
+def <begin>s<end>='abc"cde';
+print "$s"
+-----
+<caret>print "abc\"cde"
--- /dev/null
+def foo(int x) {
+ return "foo(x = $x)";
+}
+
+print "foo(2) = ${<begin>foo<end>(2)}";
+-----
+def foo(int x) {
+ return "foo(x = $x)";
+}
+
+print "foo(2) = foo(x = 2)";