You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
J.FieldAccess#type: JavaType.Class with signature: java.lang.Integer
J.FieldAccess#target#type: JavaType.Class with signature: A
J.FieldAccess#target#fieldType: JavaType.Variable with signature: B{name=super,type=A}
openclassA {
val id:Int=0
}
classB : A() {
funget(): Int {
returnsuper.id
}
}
J.FieldAccess#type: JavaType.Class with signature: kotlin.int
J.FieldAccess#target#type: JavaType.Class with signature: A
J.FieldAccess#target#fieldType: null
The issue is caused by visitSimpleNameExpression not having context to the necessary types and might cause incorrect types in many other places. We don't test the type of every identifier, which might be necessary now that we've switched to the PSI. This issue might not exist in the IR, but we'd need to check.
The text was updated successfully, but these errors were encountered:
Comparing the types from the Java compiler with the PSI-based parser shows incorrect type attribution:
J.FieldAccess#type:
JavaType.Class
with signature:java.lang.Integer
J.FieldAccess#target#type:
JavaType.Class
with signature:A
J.FieldAccess#target#fieldType:
JavaType.Variable
with signature:B{name=super,type=A}
J.FieldAccess#type:
JavaType.Class
with signature:kotlin.int
J.FieldAccess#target#type:
JavaType.Class
with signature:A
J.FieldAccess#target#fieldType: null
The issue is caused by
visitSimpleNameExpression
not having context to the necessary types and might cause incorrect types in many other places. We don't test the type of every identifier, which might be necessary now that we've switched to the PSI. This issue might not exist in the IR, but we'd need to check.The text was updated successfully, but these errors were encountered: