[FIR] KT-55552: Report type mismatch for delegated properties

^KT-55552 Fixed
This commit is contained in:
Nikolay Lunyak
2023-05-12 14:05:57 +03:00
committed by Space Team
parent 81d955a712
commit f94c795b5b
7 changed files with 49 additions and 32 deletions
@@ -25,7 +25,7 @@ class Case4(val y: Any?): ClassWithCostructorParam(y!!) {
}
// TESTCASE NUMBER: 5
class Case5(val y: Any?): ClassWithCostructorParam(y as Interface1), Interface1 by y {}
class Case5(val y: Any?): ClassWithCostructorParam(y as Interface1), Interface1 by <!TYPE_MISMATCH!>y<!> {}
// TESTCASE NUMBER: 6
fun case_6(a: Int?) = object : ClassWithCostructorParam(a!!) {