mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
introduce injected fragment as string (IDEA-90322)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
{
|
||||
String regexp = "|\t";
|
||||
String[] parts = "".split(regexp);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
{
|
||||
String[] parts = "".split("|<caret>\t");
|
||||
}
|
||||
}
|
||||
@@ -109,6 +109,10 @@ public class IntroduceVariableTest extends LightCodeInsightTestCase {
|
||||
doTest(new MockIntroduceVariableHandler("it", false, false, false, "java.lang.String"));
|
||||
}
|
||||
|
||||
public void testFromInjected() throws Exception {
|
||||
doTest(new MockIntroduceVariableHandler("regexp", false, false, false, "java.lang.String"));
|
||||
}
|
||||
|
||||
public void testSCR10412() throws Exception {
|
||||
doTest(new MockIntroduceVariableHandler("newVar", false, false, false, "java.lang.String[]"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user