K2 Scripting: enable script diagnostic tests for FIR

also add script scopes test
This commit is contained in:
Ilya Chernikov
2022-11-10 12:04:38 +01:00
committed by Space Team
parent a3a1550933
commit 47448d779c
21 changed files with 571 additions and 304 deletions
@@ -0,0 +1,17 @@
// !WITH_NEW_INFERENCE
val (a1, a2) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>A()<!>
val (b1: Int, b2: Int) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>A()<!>
val (c1) = <!COMPONENT_FUNCTION_MISSING, UNRESOLVED_REFERENCE!>unresolved<!>
<!WRONG_MODIFIER_TARGET!>private<!> val (d1) = <!COMPONENT_FUNCTION_MISSING!>A()<!>
val (e1, _) = <!COMPONENT_FUNCTION_MISSING!>A()<!>
<!UNRESOLVED_REFERENCE!>a1<!>
<!UNRESOLVED_REFERENCE!>a2<!>
<!UNRESOLVED_REFERENCE!>e1<!>
class A {
operator fun component1() = 1
operator fun component2() = ""
}