Add val/var tokens in parameter name recovery set

Recovery after val/var everywhere beside value parameters works
properly without this change

 #KT-7915 Fixed
This commit is contained in:
Denis Zharkov
2016-07-01 14:55:32 +03:00
parent b0edec8449
commit 46f11a5ec4
7 changed files with 407 additions and 1 deletions
@@ -0,0 +1,43 @@
// VAL
class A(
val<!SYNTAX!><!>
val x: Int,
val
private<!SYNTAX!><!> val z: Int,
val<!SYNTAX!><!>
)
val<!SYNTAX!><!>
fun foo() {}
class B {
val<!SYNTAX!><!>
fun foo() {}
fun bar() {
val<!SYNTAX!><!>
fun foo() {}
}
}
// VAR
class C(
var<!SYNTAX!><!>
val x: Int,
var
private<!SYNTAX!><!> val z: Int,
var<!SYNTAX!><!>
)
var<!SYNTAX!><!>
fun baz() {}
class D {
var<!SYNTAX!><!>
fun foo() {}
fun bar() {
var<!SYNTAX!><!>
fun foo() {}
}
}