Make completion for overriding functions respect suspend modifier

Fixes #KT-22200
This commit is contained in:
Kirill Rakhman
2018-01-09 21:52:18 +01:00
committed by Alexander Udalov
parent 8bc020f31b
commit b567817d1f
6 changed files with 44 additions and 10 deletions
@@ -0,0 +1,9 @@
interface I {
suspend fun foo()
}
class A : I {
o<caret>
}
// ELEMENT_TEXT: "override suspend fun foo() {...}"
@@ -0,0 +1,11 @@
interface I {
suspend fun foo()
}
class A : I {
override suspend fun foo() {
<caret><selection>TODO("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}
// ELEMENT_TEXT: "override suspend fun foo() {...}"