Add LightProjectDescriptor with script-runtime dependency. Use it in PsiChecker tests.

This commit is contained in:
Natalia Selezneva
2018-07-09 13:04:23 +03:00
committed by Ilya Chernikov
parent 3b8bf3e74e
commit 790188120a
7 changed files with 20 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
// RUNTIME_WITH_SCRIPT_RUNTIME
val c = true
if (c) {
2 + 3
+2
View File
@@ -1,3 +1,5 @@
// RUNTIME_WITH_SCRIPT_RUNTIME
package org.my
val x = 1
+2
View File
@@ -1,3 +1,5 @@
// RUNTIME_WITH_SCRIPT_RUNTIME
fun f() {
}
@@ -1,2 +1,4 @@
// RUNTIME_WITH_SCRIPT_RUNTIME
val x = <error descr="[UNINITIALIZED_VARIABLE] Variable 'y' must be initialized">y</error>
val y = 3