Update testdata according to change compiler version to 1.4

This commit is contained in:
Dmitriy Novozhilov
2020-01-15 22:13:52 +03:00
parent 5bfb92661e
commit 76b3964e96
39 changed files with 109 additions and 244 deletions
@@ -1,3 +1,5 @@
// !LANGUAGE: -BareArrayClassLiteral -ProhibitGenericArrayClassLiteral
val a01 = <!ARRAY_CLASS_LITERAL_REQUIRES_ARGUMENT!>Array::class<!>
val a02 = Array<<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Array<!>>::class
val a03 = Array<Any?>::class
@@ -30,7 +30,7 @@ inline fun case_2(block: () -> Unit) = <!CONTRACT_NOT_ALLOWED("Contracts are all
fun case_3(block: () -> Unit) {
class Class {
fun innerFun(block2: () -> Unit) {
<!CONTRACT_NOT_ALLOWED("Contracts are allowed only for top-level functions")!>contract<!> {
<!CONTRACT_NOT_ALLOWED("Contracts are allowed only for functions")!>contract<!> {
callsInPlace(block2, InvocationKind.EXACTLY_ONCE)
}
block2()