IDE testdata: s/trait/interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait <info textAttributesKey="KOTLIN_TRAIT">TheTrait</info> {
|
||||
interface <info textAttributesKey="KOTLIN_TRAIT">TheTrait</info> {
|
||||
}
|
||||
|
||||
class <info textAttributesKey="KOTLIN_CLASS">TheClass</info> : <info textAttributesKey="KOTLIN_TRAIT">TheTrait</info> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait <info textAttributesKey="KOTLIN_TRAIT">FunctionLike</info> {
|
||||
interface <info textAttributesKey="KOTLIN_TRAIT">FunctionLike</info> {
|
||||
fun <info textAttributesKey="KOTLIN_FUNCTION_DECLARATION">invoke</info>() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class MyClass(): MyTrait {
|
||||
}
|
||||
}
|
||||
|
||||
trait MyTrait {
|
||||
interface MyTrait {
|
||||
deprecated("Use A instead") companion object {
|
||||
val test: String = ""
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("Use A instead") trait MyTrait { }
|
||||
deprecated("Use A instead") interface MyTrait { }
|
||||
|
||||
fun test() {
|
||||
val a: <warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'MyTrait' is deprecated. Use A instead">MyTrait</warning>? = null
|
||||
|
||||
Reference in New Issue
Block a user