[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
+2 -2
View File
@@ -169,6 +169,6 @@ abstract class B3(i: Int) {
}
fun foo(a: B3) {
val a = B3(1)
val b = B1(2, "s")
val a = <error descr="[CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS] Cannot create an instance of an abstract class">B3(1)</error>
val b = <error descr="[CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS] Cannot create an instance of an abstract class">B1(2, "s")</error>
}