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:
@@ -1,3 +1,4 @@
|
||||
same_file: 5
|
||||
diff_file: 7
|
||||
diff_file: 13
|
||||
diff_file: 1337
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user