Added init keyword to testdata
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class A {
|
||||
companion object {
|
||||
|
||||
{
|
||||
init {
|
||||
1 + 1 // A
|
||||
val a = 1 // A
|
||||
fun foo() {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ var aDelegate: Int by Delegates.notNull()
|
||||
val aLambda = { 1 + 1 }
|
||||
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
// EXPRESSION: i
|
||||
// RESULT: 1: I
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
val a = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ val <info textAttributesKey="KOTLIN_PACKAGE_PROPERTY"><info textAttributesKey="K
|
||||
}
|
||||
|
||||
class <info textAttributesKey="KOTLIN_CLASS">Foo</info>(val <info textAttributesKey="KOTLIN_PARAMETER"><info textAttributesKey="KOTLIN_INSTANCE_PROPERTY"><info textAttributesKey="KOTLIN_PROPERTY_WITH_BACKING_FIELD">a</info></info></info> : <info textAttributesKey="KOTLIN_CLASS">Int</info>, <info textAttributesKey="KOTLIN_PARAMETER">b</info> : <info textAttributesKey="KOTLIN_CLASS">String</info>) {
|
||||
{
|
||||
<info>init</info> {
|
||||
<info textAttributesKey="KOTLIN_PARAMETER">b</info>
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create parameter 'foo'" "true"
|
||||
|
||||
class A(foo: Int) {
|
||||
{
|
||||
init {
|
||||
val t: Int = foo
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create parameter 'foo'" "true"
|
||||
|
||||
class A {
|
||||
{
|
||||
init {
|
||||
val t: Int = <caret>foo
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
class A() {
|
||||
var a : Int
|
||||
set(v) {}
|
||||
{
|
||||
init {
|
||||
<caret>$a = 1
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
public open class Identifier() {
|
||||
var field : Boolean
|
||||
set(v) {}
|
||||
{
|
||||
init {
|
||||
<caret>this.$field = false;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
class A() {
|
||||
var a : Int
|
||||
set(v) {}
|
||||
{
|
||||
init {
|
||||
<caret>a = 1
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
public open class Identifier() {
|
||||
var field : Boolean
|
||||
set(v) {}
|
||||
{
|
||||
init {
|
||||
<caret>this.field = false;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
class Bar {
|
||||
{
|
||||
init {
|
||||
Foo()()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
fun String.inc() = this + "+"
|
||||
|
||||
class Foo {
|
||||
{
|
||||
init {
|
||||
var s = ""
|
||||
<selection>s++</selection>
|
||||
s.inc()
|
||||
|
||||
Reference in New Issue
Block a user