Regression: getPredictableNullability for unnecessary safe call check #KT-10276 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// See KT-10276
|
||||
|
||||
class Bar() {
|
||||
var test: String? = null
|
||||
fun foo() {
|
||||
if (test != null) {
|
||||
// No warning: test is a mutable property
|
||||
test?.hashCode()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user