Update testData for changed diagnostic messages

GitOrigin-RevId: e59cad55f5cbdd444df67a70c45ddef29681210d
This commit is contained in:
Dmitry Petrov
2017-05-26 13:58:46 +03:00
committed by intellij-monorepo-bot
parent c3cfbcfc4c
commit fee076cfb8
20 changed files with 24 additions and 24 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,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()
}
@@ -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)
@@ -1,4 +1,4 @@
// ERROR: Class 'A' must be declared abstract or implement abstract member public abstract fun run(): Unit defined in java.lang.Runnable
// ERROR: Class 'A' is not abstract and does not implement abstract member public abstract fun run(): Unit defined in java.lang.Runnable
package foo
// we use package 'foo'
@@ -19,7 +19,7 @@ End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Class 'BA' must be declared abstract or implement abstract member public abstract fun f(c: C<Any>): Unit defined in A
Class 'BA' is not abstract and does not implement abstract member public abstract fun f(c: C<Any>): Unit defined in A
================ Step #2 =================
@@ -31,4 +31,4 @@ Compiling files:
src/BA.kt
End of files
Exit code: OK
------------------------------------------
------------------------------------------
@@ -12,8 +12,8 @@ Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Platform declaration clash: The following declarations have the same JVM signature (function(Ljava/util/List;)V):
fun function(list: List<Any>): Unit
fun function(list: List<String>): Unit
fun function(list: List<Any>): Unit defined in test
fun function(list: List<String>): Unit defined in test
Platform declaration clash: The following declarations have the same JVM signature (function(Ljava/util/List;)V):
fun function(list: List<Any>): Unit
fun function(list: List<String>): Unit
fun function(list: List<Any>): Unit defined in test
fun function(list: List<String>): Unit defined in test