KT-3263 Add a quick fix to make a class inner

This commit is contained in:
Andrey Ponomarev
2013-01-23 16:27:49 +01:00
parent a0a22b7be6
commit 52d259bc7b
3 changed files with 18 additions and 0 deletions
@@ -151,5 +151,7 @@ public class QuickFixes {
factories.put(NO_TYPE_ARGUMENTS_ON_RHS_OF_IS_EXPRESSION, AddStarProjectionsFix.createFactoryForIsExpression());
factories.put(WRONG_NUMBER_OF_TYPE_ARGUMENTS, AddStarProjectionsFix.createFactoryForJavaClass());
factories.put(INACCESSIBLE_OUTER_CLASS_EXPRESSION, AddModifierFix.createFactory(INNER_KEYWORD, JetClass.class));
}
}
@@ -0,0 +1,8 @@
// "Add 'inner' modifier" "true"
class A {
fun foo() = 42
inner class B {
fun bar() = <caret>foo()
}
}
@@ -0,0 +1,8 @@
// "Add 'inner' modifier" "true"
class A {
fun foo() = 42
class B {
fun bar() = <caret>foo()
}
}