Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages.

This commit is contained in:
Evgeny Gerashchenko
2015-03-03 12:38:31 +03:00
parent a56b1da11f
commit 7b6f83815c
15 changed files with 94 additions and 131 deletions
@@ -0,0 +1,12 @@
// "class org.jetbrains.kotlin.idea.quickfix.RemoveFunctionParametersFix" "false"
//ERROR: No value passed for parameter other
trait StringComparable {
public fun compareTo(other: String): Int = 0
}
class X: Comparable<String>, StringComparable
fun main(args: Array<String>) {
X().compareTo(<caret>)
}