fix PsiCheckerTestGenerated according to removed "property with backing field" highlighting

This commit is contained in:
Dmitry Jemerov
2016-05-25 20:10:01 +02:00
parent 14559bfae0
commit b37ac4f783
4 changed files with 11 additions and 11 deletions
@@ -11,14 +11,14 @@ class Delegate(<warning>d</warning>: Int) {
}
class A(y: Int, t: Int, d: Int): T <info>by</info> T1(t) {
val <info>a</info> = y
val a = y
val b <info>by</info> Delegate(d)
}
class A2<T>(x: Int, y: Int, t: T) {
val <info>t1</info>: T = t
val t1: T = t
val <info>x1</info> = run { x }
val x1 = run { x }
<info>init</info> {
run {
y
@@ -37,7 +37,7 @@ class B(
) {
<info>init</info> {
class C(<warning>a</warning>: Int = <info>x</info>): T <info>by</info> T1(<info>t</info>) {
val <info>a</info> = <info>y</info>
val a = <info>y</info>
val b <info>by</info> Delegate(<info>d</info>)
}
}
@@ -45,7 +45,7 @@ class B(
class B2(<info descr="Value captured in a closure">x</info>: Int, <info descr="Value captured in a closure">y</info>: Int) {
val <info>x1</info> = { <info>x</info> }()
val x1 = { <info>x</info> }()
<info>init</info> {
{
<info>y</info>
+1 -1
View File
@@ -80,7 +80,7 @@ fun objectExpression() {
val <info descr="Value captured in a closure">u2</info> = 1
object : Any() {
val <info>prop</info> = run {
val prop = run {
<info descr="Value captured in a closure">u2</info>
}
}
+4 -4
View File
@@ -5,9 +5,9 @@
<error>val a : Int</error>
<error>val b : Int</error> <info>get</info>
val <info>c</info> = 1
val c = 1
val <info>c1</info> = 1
val c1 = 1
<info>get</info>
val c2 : Int
<info>get</info>() = 1
@@ -42,9 +42,9 @@
<info>open</info> class Super(<warning>i</warning> : Int)
class TestPCParameters(w : Int, <warning>x</warning> : Int, val <info>y</info> : Int, var <info>z</info> : Int) : Super(w) {
class TestPCParameters(w : Int, <warning>x</warning> : Int, val y : Int, var z : Int) : Super(w) {
val <info>xx</info> = w
val xx = w
<info>init</info> {
w + 1
+1 -1
View File
@@ -225,7 +225,7 @@ fun f(): String {
return ""
}
class Mutable(var <info descr="This property has a backing field">x</info>: String?) {
class Mutable(var x: String?) {
val xx: String?
<info descr="null">get</info>() = x