compiler testdata: s/trait/interface
This commit is contained in:
@@ -33,7 +33,7 @@ object A {
|
||||
companion object
|
||||
}
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
companion object
|
||||
|
||||
class C {
|
||||
|
||||
@@ -158,7 +158,7 @@ JetFile: DefaultKeyword.kt
|
||||
PsiElement(RBRACE)('}')
|
||||
PsiWhiteSpace('\n\n')
|
||||
CLASS
|
||||
PsiElement(trait)('trait')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('A')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
trait TestTrait(val a: Int, var b: String, c: Double)
|
||||
trait TestTrait()
|
||||
interface TestTrait(val a: Int, var b: String, c: Double)
|
||||
interface TestTrait()
|
||||
@@ -2,7 +2,7 @@ JetFile: TraitConstructor.kt
|
||||
PACKAGE_DIRECTIVE
|
||||
<empty list>
|
||||
CLASS
|
||||
PsiElement(trait)('trait')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('TestTrait')
|
||||
PRIMARY_CONSTRUCTOR
|
||||
@@ -43,7 +43,7 @@ JetFile: TraitConstructor.kt
|
||||
PsiElement(RPAR)(')')
|
||||
PsiWhiteSpace('\n')
|
||||
CLASS
|
||||
PsiElement(trait)('trait')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('TestTrait')
|
||||
PRIMARY_CONSTRUCTOR
|
||||
|
||||
@@ -10,4 +10,4 @@ fun func() {}
|
||||
class C
|
||||
|
||||
[file:]
|
||||
trait T
|
||||
interface T
|
||||
|
||||
@@ -88,6 +88,6 @@ JetFile: fileAnnotationInWrongPlace.kt
|
||||
<empty list>
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(trait)('trait')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('T')
|
||||
Reference in New Issue
Block a user