Fix "Descriptor of property not available in binding context" assert for declarations in bodies
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Change 'prop' type to 'Int'" "true"
|
||||
// ERROR: Null can not be a value of a non-null type Int
|
||||
trait Test<T> {
|
||||
val prop : T
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun doTest() {
|
||||
val some = object: Test<Int> {
|
||||
override val prop: Int = null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Change 'prop' type to 'Int'" "true"
|
||||
// ERROR: Null can not be a value of a non-null type Int
|
||||
trait Test<T> {
|
||||
val prop : T
|
||||
}
|
||||
|
||||
class Other {
|
||||
fun doTest() {
|
||||
val some = object: Test<Int> {
|
||||
override val <caret>prop = null
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user