[FIR] do not treat external ide annotations as real one
Such annotations are supposed to affect only diagnostic warnings ^KT-62310 Fixed
This commit is contained in:
committed by
Space Team
parent
2cac922cd0
commit
b2c8d7e777
-1
@@ -1 +0,0 @@
|
||||
open fun foo(): kotlin.String!
|
||||
+1
-1
@@ -1 +1 @@
|
||||
open fun foo(): kotlin.String
|
||||
open fun foo(): kotlin.String!
|
||||
analysis/analysis-api/testData/symbols/symbolByReference/javaMethodWithExternalNotNullAnnotation.txt
Vendored
+2
-3
@@ -22,10 +22,9 @@ KtFunctionSymbol:
|
||||
name: foo
|
||||
origin: JAVA
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
returnType: KtFlexibleType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: @EnhancedNullability kotlin/String
|
||||
type: kotlin/String!
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
|
||||
Vendored
+2
-2
@@ -3,12 +3,12 @@ FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/String| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/String!| {
|
||||
^test R|/ClassWithExternalAnnotatedMembers.ClassWithExternalAnnotatedMembers|().R|/ClassWithExternalAnnotatedMembers.externalNotNullMethod|()
|
||||
}
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] usage.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/String| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/String!| {
|
||||
^test R|/ClassWithExternalAnnotatedMembers.ClassWithExternalAnnotatedMembers|().R|/ClassWithExternalAnnotatedMembers.externalNotNullMethod|()
|
||||
}
|
||||
Reference in New Issue
Block a user