-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d50c980
commit ce384e1
Showing
5 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// test for vala | ||
|
||
class Demo.Demo : GLib.Object { | ||
public static int main(string[] args) { | ||
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9}; | ||
foreach (var i in arr) { | ||
foreach (var j in arr[0:i]) { | ||
var n = i * j; | ||
stdout.printf(@"$j * $i = $n "); | ||
} | ||
stdout.printf("\n"); | ||
} | ||
stdout.printf(""" | ||
Test for "verbatim strings". | ||
\r \n \a \b | ||
"""); | ||
stdout.printf("\n"); | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.