new shorthand syntax for simple_passthrough if assigning to same name simple_passthrough(i=i, j=j : j = j:) becomes simple_passthrough(i,j : j :)

This commit is contained in:
Nathan Braswell
2015-06-19 13:28:02 -04:00
parent e77af0d584
commit 616b955bf9
4 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
same_file: 5
diff_file: 7
diff_file: 13
diff_file: 1337

View File

@@ -19,6 +19,14 @@ fun main(): int {
j = i + j;
"""
c_passthrough_diff::print_it(j)
// test new shorthand for same name assignments
var r: int = 1000;
var s: int = 337;
__if_comp__ __C__ simple_passthrough(r, s : s:) """
s = r + s;
"""
c_passthrough_diff::print_it(s)
return 0
}