Update testData for changed diagnostic messages

This commit is contained in:
Dmitry Petrov
2017-05-25 10:58:12 +03:00
parent 17eab2865d
commit 7979663e6c
24 changed files with 98 additions and 98 deletions
@@ -1,2 +1,2 @@
<!-- abstractBaseClassMemberNotImplemented1 -->
Class 'E' must be declared abstract or implement abstract base class member public abstract fun f(): T4 defined in D
Class 'E' is not abstract and does not implement abstract base class member public abstract fun f(): T4 defined in D
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: Class 'C' must be declared abstract or implement abstract base class member public abstract fun foo(): Int defined in B
// ERROR: Class 'C' is not abstract and does not implement abstract base class member public abstract fun foo(): Int defined in B
interface A {
fun <caret>foo(): Int
}
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: Class 'C' must be declared abstract or implement abstract base class member public abstract val foo: Int defined in B
// ERROR: Class 'C' is not abstract and does not implement abstract base class member public abstract val foo: Int defined in B
interface A {
val <caret>foo: Int
}
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
// ERROR: Class 'C' must be declared abstract or implement abstract base class member public abstract val foo: Int defined in B
// ERROR: Class 'C' is not abstract and does not implement abstract base class member public abstract val foo: Int defined in B
interface A {
val <caret>foo: Int
}
+1 -1
View File
@@ -1,6 +1,6 @@
// "Make 'A' abstract" "false"
// ACTION: Implement members
// ERROR: Class 'A' must be declared abstract or implement abstract member public abstract fun foo(): Unit defined in E
// ERROR: Class 'A' is not abstract and does not implement abstract member public abstract fun foo(): Unit defined in E
enum class E {
<caret>A;
@@ -3,7 +3,7 @@
// ACTION: Make private
// ACTION: Make protected
// ACTION: Make 'n' abstract
// ERROR: Property must be initialized or be abstract
// ERROR: Extension property must have accessors or be abstract
class A {
<caret>val Int.n: Int
}
@@ -1,5 +1,5 @@
// "class org.jetbrains.kotlin.idea.quickfix.InitializePropertyQuickFixFactory$AddInitializerFix" "false"
// ACTION: Make internal
// ACTION: Make private
// ERROR: Property must be initialized
// ERROR: Extension property must have accessors or be abstract
<caret>val Int.n: Int
@@ -1,5 +1,5 @@
// "class org.jetbrains.kotlin.idea.quickfix.InitializePropertyQuickFixFactory$AddInitializerFix" "false"
// ACTION: Make internal
// ACTION: Make private
// ERROR: Property must be initialized
// ERROR: Extension property must have accessors or be abstract
<caret>val Int.n: Int
@@ -1,5 +1,5 @@
// "Create class 'Foo'" "true"
// ERROR: Class 'Foo' must be declared abstract or implement abstract member public abstract operator fun getValue(thisRef: A<T>, property: KProperty<*>): B defined in kotlin.properties.ReadOnlyProperty
// ERROR: Class 'Foo' is not abstract and does not implement abstract member public abstract operator fun getValue(thisRef: A<T>, property: KProperty<*>): B defined in kotlin.properties.ReadOnlyProperty
open class B
@@ -1,7 +1,7 @@
import kotlin.properties.ReadOnlyProperty
// "Create class 'Foo'" "true"
// ERROR: Class 'Foo' must be declared abstract or implement abstract member public abstract operator fun getValue(thisRef: A<T>, property: KProperty<*>): B defined in kotlin.properties.ReadOnlyProperty
// ERROR: Class 'Foo' is not abstract and does not implement abstract member public abstract operator fun getValue(thisRef: A<T>, property: KProperty<*>): B defined in kotlin.properties.ReadOnlyProperty
open class B
@@ -2,7 +2,7 @@
// ACTION: Implement members
// ACTION: Split property declaration
// ACTION: Convert object literal to class
// ERROR: Object must be declared abstract or implement abstract member public abstract fun foo(): Unit defined in T
// ERROR: Object is not abstract and does not implement abstract member public abstract fun foo(): Unit defined in T
interface T {
fun foo()
}
+1 -1
View File
@@ -3,7 +3,7 @@
// ACTION: Implement members
// ACTION: Move 'Some' to separate file
// ACTION: Rename file to Some.kt
// ERROR: Object 'Some' must be declared abstract or implement abstract member public abstract fun foo(): Unit defined in T
// ERROR: Object 'Some' is not abstract and does not implement abstract member public abstract fun foo(): Unit defined in T
interface T {
fun foo()
}
@@ -3,7 +3,7 @@
// ACTION: Make internal
// ACTION: Make private
// ACTION: Make protected
// ERROR: Property must be initialized or be abstract
// ERROR: Extension property must have accessors or be abstract
class A {
<caret>val Int.n: Int
}
@@ -5,7 +5,7 @@
// ACTION: Make internal
// ACTION: Make private
// ACTION: Move 'A' to separate file
// ERROR: Class 'A' must be declared abstract or implement abstract member public abstract fun foo(): Int defined in I
// ERROR: Class 'A' is not abstract and does not implement abstract member public abstract fun foo(): Int defined in I
interface I {
fun foo(): Int
}
@@ -4,7 +4,7 @@
// ACTION: Make internal
// ACTION: Make private
// ACTION: Move 'A' to separate file
// ERROR: Object 'A' must be declared abstract or implement abstract member public abstract val foo: Int defined in I
// ERROR: Object 'A' is not abstract and does not implement abstract member public abstract val foo: Int defined in I
interface I {
val foo: Int
}
@@ -1,5 +1,5 @@
// "Change function signature..." "true"
// ERROR: Class 'B' must be declared abstract or implement abstract member public abstract fun f(a: String): Unit defined in A
// ERROR: Class 'B' is not abstract and does not implement abstract member public abstract fun f(a: String): Unit defined in A
interface A {
fun f(a: Int)
fun f(a: String)
@@ -1,5 +1,5 @@
// "Change function signature..." "true"
// ERROR: Class 'B' must be declared abstract or implement abstract member public abstract fun f(a: String): Unit defined in A
// ERROR: Class 'B' is not abstract and does not implement abstract member public abstract fun f(a: String): Unit defined in A
interface A {
fun f(a: Int)
fun f(a: String)