KT-12260 ISE while replacing an operator with safe call
#KT-12260 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Replace with safe (?.) call" "true"
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'value?.compareTo(1).compareTo(0)' which is not allowed on a nullable receiver 'value?.compareTo(1)'. Use '?.'-qualified call instead
|
||||
var foo: Int? = null
|
||||
set(value) {
|
||||
if(value <caret>< 1) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Replace with safe (?.) call" "true"
|
||||
// ERROR: Infix call corresponds to a dot-qualified call 'value?.compareTo(1).compareTo(0)' which is not allowed on a nullable receiver 'value?.compareTo(1)'. Use '?.'-qualified call instead
|
||||
var foo: Int? = null
|
||||
set(value) {
|
||||
if(value?.compareTo(1) < 0) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user