Don't generate component function in lazy resolve for parameter if it has no val/var

This commit is contained in:
Nikolay Krasko
2014-09-08 14:59:09 +04:00
parent caee19cdc7
commit 65d358a066
9 changed files with 68 additions and 5 deletions
@@ -0,0 +1,10 @@
data class A(foo: String, val bar: Int, other: Long) {
val foo = foo
val other = other
}
fun test(a: A) {
a.component1()
a.<!UNRESOLVED_REFERENCE!>component2<!>()
a.<!UNRESOLVED_REFERENCE!>component3<!>()
}