[Spec tests] Add tests for expressions and statements
This commit is contained in:
committed by
Victor Petukhov
parent
5f4a94a1b3
commit
5986ffae1e
@@ -1,3 +1,7 @@
|
||||
/*
|
||||
* RELEVANT SPEC SENTENCES (spec version: 0.1-220, test type: pos):
|
||||
* - expressions, call-and-property-access-expressions, callable-references -> paragraph 3 -> sentence 1
|
||||
*/
|
||||
fun f1() = <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Map<!>::hashCode
|
||||
fun f2() = <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Map.Entry<!>::hashCode
|
||||
|
||||
|
||||
Vendored
+4
-1
@@ -1,6 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// !CHECK_TYPE
|
||||
|
||||
/*
|
||||
* RELEVANT SPEC SENTENCES (spec version: 0.1-220, test type: pos):
|
||||
* - expressions, call-and-property-access-expressions, callable-references -> paragraph 11 -> sentence 3
|
||||
*/
|
||||
import kotlin.reflect.KFunction0
|
||||
|
||||
fun test() {
|
||||
|
||||
+5
-1
@@ -1,6 +1,10 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
/*
|
||||
* RELEVANT SPEC SENTENCES (spec version: 0.1-220, test type: pos):
|
||||
* - expressions, call-and-property-access-expressions, navigation-operators -> paragraph 9 -> sentence 2
|
||||
* - expressions, call-and-property-access-expressions, navigation-operators -> paragraph 8 -> sentence 1
|
||||
*/
|
||||
import kotlin.reflect.KProperty1
|
||||
|
||||
class DTO {
|
||||
|
||||
Reference in New Issue
Block a user