KT-3575, KT-2297 Inserting pair for "${": use JetPairMatcher instead of KotlinTypeHandler

#KT-3575 fixed
This commit is contained in:
Sergey Rostov
2013-05-20 17:02:38 +04:00
parent b2bb581127
commit 76edecb90a
3 changed files with 8 additions and 15 deletions
@@ -26,6 +26,12 @@ public class TypedHandlerTest extends LightCodeInsightTestCase {
checkResultByText("val x = \"${}\"");
}
public void testKT3575() throws Exception {
configureFromFileText("a.kt", "val x = \"$<caret>]\"");
EditorTestUtil.performTypingAction(getEditor(), '{');
checkResultByText("val x = \"${}]\"");
}
public void testTypeLtInFunDeclaration() throws Exception {
doLtGtTest("fun <caret>");
}