Control-Flow: Generate instruction for left-hand side of invalid assignments
#KT-8390 Fixed
This commit is contained in:
+2
-2
@@ -39,7 +39,7 @@ class D() {
|
||||
fun foo(): Unit {}
|
||||
|
||||
fun cannotBe() {
|
||||
var <!UNUSED_VARIABLE!>i<!>: Int = 5
|
||||
var i: Int = 5
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>z<!> = 30;
|
||||
<!VARIABLE_EXPECTED!>""<!> = "";
|
||||
@@ -135,4 +135,4 @@ fun Array<Int>.checkThis() {
|
||||
|
||||
abstract class Ab {
|
||||
abstract fun getArray() : Array<Int>
|
||||
}
|
||||
}
|
||||
@@ -26,3 +26,7 @@ fun get(p: Any) {
|
||||
|
||||
fun set(p: Any) {
|
||||
}
|
||||
|
||||
fun foo(s: String) {
|
||||
s.<!UNRESOLVED_REFERENCE!>xxx<!> = 1
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package
|
||||
|
||||
internal fun f(/*0*/ a: kotlin.Int, /*1*/ b: kotlin.Int, /*2*/ c: kotlin.Int = ...): kotlin.Unit
|
||||
internal fun foo(/*0*/ s: kotlin.String): kotlin.Unit
|
||||
internal fun get(/*0*/ p: kotlin.Any): kotlin.Unit
|
||||
internal fun set(/*0*/ p: kotlin.Any): kotlin.Unit
|
||||
internal fun kotlin.Any.get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user