[FIR] Implement CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS diagnostics, fix tests

This commit is contained in:
Ivan Kochurkin
2021-04-19 15:54:01 +03:00
committed by TeamCityServer
parent f2f2df90aa
commit d54808e33f
13 changed files with 66 additions and 28 deletions
@@ -1,20 +0,0 @@
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT
// TESTCASE NUMBER: 1
abstract class Base0()
abstract class Base1() {
abstract fun foo()
}
abstract class Base2(var b1: Any, val a1: Any) {
abstract fun foo()
}
fun case1() {
val b0 = Base0()
val b1 = Base1()
val b2 = Base2(1, "1")
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT