Do not discriminate synthesized candidates.

#KT-9965 Fixed
This commit is contained in:
Stanislav Erokhin
2015-12-18 01:35:43 +03:00
parent 1b6f96ac2b
commit 8b5a194dd6
14 changed files with 166 additions and 17 deletions
@@ -1,4 +1,7 @@
data class A(val a: Int, val b: String)
class A(val a: Int, val b: String)
operator fun A.component1() = a
operator fun A.component2() = b
fun foo1() {
<selection>val (a, b) = A(1, "2")</selection>