FIR: Resolve error expression in initializer of FirField
^KT-54775 Fixed
This commit is contained in:
committed by
Space Team
parent
156c2db855
commit
583584be7e
@@ -0,0 +1,8 @@
|
||||
fun <T> bar(): T {
|
||||
return null <!UNCHECKED_CAST!>as T<!>
|
||||
}
|
||||
|
||||
class X() : <!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>B<!> by <!ASSIGNMENT_IN_EXPRESSION_CONTEXT!><!VARIABLE_EXPECTED!>get()<!> = bar()<!> {
|
||||
val prop = <!ASSIGNMENT_IN_EXPRESSION_CONTEXT!><!VARIABLE_EXPECTED!>bar()<!> = 2<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user