[Low Level FIR] fix exception when creating symbol by invalid code
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
KtErrorCallInfo:
|
||||
candidateCalls = []
|
||||
diagnostic = ERROR<ASSIGNMENT_IN_EXPRESSION_CONTEXT: Assignments are not expressions, and only expressions are allowed in this context>
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
KtErrorCallInfo:
|
||||
candidateCalls = []
|
||||
diagnostic = ERROR<ASSIGNMENT_IN_EXPRESSION_CONTEXT: Assignments are not expressions, and only expressions are allowed in this context>
|
||||
diagnostic = ERROR<VARIABLE_EXPECTED: Variable expected>
|
||||
analysis/analysis-api/testData/symbols/singleSymbolByPsi/errors/anonympuseObjectInInvalidPosition.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
private val _commonSettingsLazy: A = null = <expr>object : A<Int> {
|
||||
override fun x() {}
|
||||
}</expr>
|
||||
|
||||
interface A<T> {
|
||||
fun x()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
object : A<kotlin.Int>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
KtAnonymousObjectSymbol:
|
||||
annotationsList: []
|
||||
classIdIfNonLocal: null
|
||||
classKind: ANONYMOUS_OBJECT
|
||||
name: null
|
||||
origin: SOURCE
|
||||
superTypes: [
|
||||
A<kotlin/Int>
|
||||
]
|
||||
symbolKind: LOCAL
|
||||
typeParameters: []
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
+1
@@ -0,0 +1 @@
|
||||
object<LanguageVersionSettings>
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
private val commonSettingsLazy = <expr>object A<LanguageVersionSettings> {
|
||||
println(x)
|
||||
}</expr>
|
||||
+1
@@ -0,0 +1 @@
|
||||
object
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
KtAnonymousObjectSymbol:
|
||||
annotationsList: []
|
||||
classIdIfNonLocal: null
|
||||
classKind: ANONYMOUS_OBJECT
|
||||
name: null
|
||||
origin: SOURCE
|
||||
superTypes: [
|
||||
kotlin/Any
|
||||
]
|
||||
symbolKind: LOCAL
|
||||
typeParameters: []
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user