diff --git a/idea/testData/highlighter/Functions.kt b/idea/testData/highlighter/Functions.kt index 26f8a22aeaa..1028ad0fab2 100644 --- a/idea/testData/highlighter/Functions.kt +++ b/idea/testData/highlighter/Functions.kt @@ -5,7 +5,7 @@ fun global() { inner() } -fun Int.ext() { +fun Int.ext() { } open class Container { diff --git a/idea/testData/highlighter/Variables.kt b/idea/testData/highlighter/Variables.kt index a5bb879c89c..5291ac34d3e 100644 --- a/idea/testData/highlighter/Variables.kt +++ b/idea/testData/highlighter/Variables.kt @@ -1,21 +1,21 @@ var x = 5 -val Int.sq : Int +val Int.sq : Int get() { return this * this } -val y : Int = 1 +val y : Int = 1 get() { return 5.sq + $y + x } -class Foo(val a : Int, b : String) { +class Foo(val a : Int, b : String) { { b } - var v : Int + var v : Int get() { return 1; } diff --git a/idea/testData/highlighter/VariablesAsFunctions.kt b/idea/testData/highlighter/VariablesAsFunctions.kt index 8f097a03643..356c031cdab 100644 --- a/idea/testData/highlighter/VariablesAsFunctions.kt +++ b/idea/testData/highlighter/VariablesAsFunctions.kt @@ -1,11 +1,11 @@ -var global : () -> Unit = {} +var global : () -> Unit = {} -val Int.ext : () -> Unit +val Int.ext : () -> Unit get() { return {} } -fun foo(a : () -> Unit) { +fun foo(a : () -> Unit) { a() global() 1.ext()