KT-1379 Override Methods does not respect caret position - fix anchor behaviour in previous commit
This commit is contained in:
@@ -94,7 +94,7 @@ public abstract class OverrideImplementMethodsHandler implements LanguageCodeIns
|
||||
}
|
||||
else if (descriptor instanceof PropertyDescriptor) {
|
||||
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 {
|
||||
override val v : Int = 0
|
||||
|
||||
override val v : Int = 0
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@ trait Test {
|
||||
|
||||
class SomeTest : Test {
|
||||
val hello = 12
|
||||
override val testProp : Int = 0
|
||||
override fun test() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
override val testProp : Int = 0
|
||||
|
||||
/**
|
||||
* test
|
||||
|
||||
Reference in New Issue
Block a user