Scratch: implement compiling executor
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package myTest;
|
||||
|
||||
public class MyJavaClass {
|
||||
public int test() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
for (i in 0..5) { // OUTPUT: 0; 1; 2; 3; 4; 5
|
||||
println(i)
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
val a = 1 // RESULT: val a: Int
|
||||
a // RESULT: 1
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo(): Int { // RESULT: fun foo(): Int
|
||||
return 1
|
||||
}
|
||||
|
||||
foo() // RESULT: 1
|
||||
+1
@@ -0,0 +1 @@
|
||||
foo() // ERROR: Unresolved reference: foo
|
||||
+1
@@ -0,0 +1 @@
|
||||
println("hello") // OUTPUT: hello
|
||||
Reference in New Issue
Block a user