Fixing tests after adding a new intention
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// "Make Object.notify open" "false"
|
||||
// ERROR: 'notify' in 'Object' is final and cannot be overridden
|
||||
// ACTION: Convert to extension
|
||||
// ACTION: Disable 'Convert to extension'
|
||||
// ACTION: Edit intention settings
|
||||
class A : Object() {
|
||||
override<caret> fun notify() {}
|
||||
}
|
||||
@@ -2,6 +2,9 @@
|
||||
// ERROR: This type is final, so it cannot be inherited from
|
||||
// ERROR: Cannot access '<init>': it is 'private' in 'E'
|
||||
// ERROR: 'ordinal' in 'E' is final and cannot be overridden
|
||||
// ACTION: Convert to extension
|
||||
// ACTION: Disable 'Convert to extension'
|
||||
// ACTION: Edit intention settings
|
||||
enum class E {}
|
||||
trait X {
|
||||
final fun ordinal() : Int = 42
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// ERROR: 'f' overrides nothing
|
||||
// ACTION: Add 'open fun f(a: String)' to 'A'
|
||||
// ACTION: Remove 'override' modifier
|
||||
// ACTION: Convert to extension
|
||||
// ACTION: Disable 'Convert to extension'
|
||||
// ACTION: Edit intention settings
|
||||
open class A {
|
||||
open fun foo() {}
|
||||
fun f(a: Int) {}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// ERROR: Function 'foo' without a body must be abstract
|
||||
// ACTION: Add function body
|
||||
// ACTION: Make 'foo' abstract
|
||||
// ACTION: Convert to extension
|
||||
// ACTION: Disable 'Convert to extension'
|
||||
// ACTION: Edit intention settings
|
||||
|
||||
package a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user