Skip to content
Permalink
Browse files

Testing various features.

  • Loading branch information
AZHenley committed Jan 25, 2020
1 parent dafc1f9 commit 69b1b38e3d47cd2955c51a7e91ca38ec8d477eb0
Showing with 25 additions and 0 deletions.
  1. +3 −0 examples/bug.knox
  2. +4 −0 examples/casts.knox
  3. +8 −0 examples/return.knox
  4. +10 −0 examples/strings.knox
@@ -0,0 +1,3 @@
func main() void {
print("Hello");
}
@@ -0,0 +1,4 @@
func main() int {
var i : int = 5;
var f : float = i as float;
}
@@ -0,0 +1,8 @@
func main() bool {
return 0;
}

func soon() bool {
return false;
}

@@ -0,0 +1,10 @@
func main() void {
var s : string = "Hello!";
var ss : string = s;
s = "Never!!!!!!!!!!!!!!!!!";

stl.print(s + "\n");
stl.print(ss);

ss = s;
}

0 comments on commit 69b1b38

Please sign in to comment.
You can’t perform that action at this time.