KT-2962 auto completion support for extension functions

#KT-2962 Fixed
This commit is contained in:
Nikolay Krasko
2012-10-18 12:12:26 +04:00
parent ce2b915645
commit 11da503c62
7 changed files with 132 additions and 14 deletions
@@ -0,0 +1,14 @@
open class Base
open class OtherBase
class Some<T>
fun <TSome : Base, R : Base> Some<TSome>.extensionBase(param: R) = "Test"
fun <TSome : OtherBase, R : OtherBase> Some<TSome>.extensionOtherBase(param: R) = "Test"
fun <TSome> Some<TSome>.extensionExact() = "Test"
fun test() {
Some<Base>().ex<caret>
}
// EXIST: extensionBase, extensionExact
// ABSENT: extensionOtherBase