KT-1379 Override Methods does not respect caret position - fix anchor behaviour in previous commit

This commit is contained in:
Nikolay Krasko
2012-03-27 20:04:16 +04:00
parent 80b251983c
commit 4e4f4c3c24
3 changed files with 3 additions and 3 deletions
@@ -94,7 +94,7 @@ public abstract class OverrideImplementMethodsHandler implements LanguageCodeIns
} }
else if (descriptor instanceof PropertyDescriptor) { else if (descriptor instanceof PropertyDescriptor) {
JetElement target = overrideProperty(project, containingFile, (PropertyDescriptor)descriptor); JetElement target = overrideProperty(project, containingFile, (PropertyDescriptor)descriptor);
afterAnchor = body.addBefore(target, afterAnchor); afterAnchor = body.addAfter(target, afterAnchor);
} }
} }
} }
@@ -3,6 +3,6 @@ trait T {
} }
class GC() : T { class GC() : T {
override val v : Int = 0
override val v : Int = 0
} }
@@ -5,10 +5,10 @@ trait Test {
class SomeTest : Test { class SomeTest : Test {
val hello = 12 val hello = 12
override val testProp : Int = 0
override fun test() { override fun test() {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
override val testProp : Int = 0
/** /**
* test * test