Julius
25a9a772e6
You just need to implement `CustomValue`, `Debug` and `Clone` for your own types, and the type can be used in your code. Next on the list: method calls (e.g. x.y(), instead of y(x))
19 lines
282 B
Plaintext
19 lines
282 B
Plaintext
|
|
foo();
|
|
|
|
def foo() {
|
|
print("hello, world!");
|
|
}
|
|
|
|
let x = 10;
|
|
let y = x-5;
|
|
|
|
print(y);
|
|
print( edit_foo(native_test()) );
|
|
|
|
// Parameter 0 was not of type sunflower::Foo, it was string
|
|
// fancy error isn't it?
|
|
// edit_foo("hello");
|
|
|
|
// this doesnt work yet :((((
|
|
// print(10.eq(20)); |