"type" is not a keyword anymore ("typealias" reserved instead)
This commit is contained in:
@@ -5,7 +5,7 @@ foo bar(1) buzz<T>(1) zoo object B
|
||||
foo bar(1) buzz<T>(1) zoo fun a() {}
|
||||
foo bar(1) buzz<T>(1) zoo val c : Int = 0
|
||||
foo bar(1) buzz<T>(1) zoo var v : Int = 0
|
||||
foo bar(1) buzz<T>(1) zoo type T = Int
|
||||
foo bar(1) buzz<T>(1) zoo typealias T = Int
|
||||
|
||||
|
||||
class Foo {
|
||||
@@ -15,7 +15,7 @@ class Foo {
|
||||
foo bar(1) buzz<T>(1) zoo fun a() {}
|
||||
foo bar(1) buzz<T>(1) zoo val c : Int = 0
|
||||
foo bar(1) buzz<T>(1) zoo var v : Int = 0
|
||||
foo bar(1) buzz<T>(1) zoo type T = Int
|
||||
foo bar(1) buzz<T>(1) zoo typealias T = Int
|
||||
|
||||
foo bar(1) buzz<T>(1) zoo {}
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@ JetFile: ShortAnnotations.kt
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('zoo')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(type)('type')
|
||||
PsiElement(typealias)('typealias')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('T')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -836,7 +836,7 @@ JetFile: ShortAnnotations.kt
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('zoo')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(type)('type')
|
||||
PsiElement(typealias)('typealias')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('T')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class F(a : [a] [b] B)
|
||||
|
||||
type f = [b] [x] F<[x] A, B>
|
||||
typealias f = [b] [x] F<[x] A, B>
|
||||
@@ -39,7 +39,7 @@ JetFile: TypeAnnotations.kt
|
||||
PsiElement(RPAR)(')')
|
||||
PsiWhiteSpace('\n\n')
|
||||
TYPEDEF
|
||||
PsiElement(type)('type')
|
||||
PsiElement(typealias)('typealias')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('f')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
Reference in New Issue
Block a user