Fix silence turning integers with leading zero into doubles
#KT-4296 Fixed
This commit is contained in:
@@ -14,4 +14,7 @@ val array = array<Any>(
|
||||
0X1l,
|
||||
0b1l,
|
||||
0B1l,
|
||||
)
|
||||
0
|
||||
)
|
||||
|
||||
val a = 01
|
||||
@@ -96,7 +96,21 @@ JetFile: IntegerLiteral.kt
|
||||
INTEGER_CONSTANT
|
||||
PsiElement(INTEGER_LITERAL)('0B1l')
|
||||
PsiElement(COMMA)(',')
|
||||
PsiErrorElement:Expecting an argument
|
||||
<empty list>
|
||||
PsiWhiteSpace('\n ')
|
||||
VALUE_ARGUMENT
|
||||
INTEGER_CONSTANT
|
||||
PsiElement(INTEGER_LITERAL)('0')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(RPAR)(')')
|
||||
PsiElement(RPAR)(')')
|
||||
PsiWhiteSpace('\n\n')
|
||||
PROPERTY
|
||||
PsiElement(val)('val')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('a')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(EQ)('=')
|
||||
PsiWhiteSpace(' ')
|
||||
INTEGER_CONSTANT
|
||||
PsiElement(INTEGER_LITERAL)('0')
|
||||
PsiErrorElement:Property getter or setter expected
|
||||
PsiElement(INTEGER_LITERAL)('1')
|
||||
Reference in New Issue
Block a user