2015-05-25 22:14:05 +02:00
|
|
|
// Test tuple litterals
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
let a = (a, a, a, a, a);
|
2016-03-14 20:51:06 +13:00
|
|
|
let aaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaa, aaaaaaaaaaaaaa);
|
2015-05-25 22:14:05 +02:00
|
|
|
let aaaaaaaaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
2015-09-04 18:09:05 +02:00
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
2015-05-25 22:14:05 +02:00
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
aaaa);
|
2015-05-30 16:52:46 +02:00
|
|
|
let a = (a,);
|
2015-06-23 15:58:58 +02:00
|
|
|
|
|
|
|
let b = (// This is a comment
|
|
|
|
b, // Comment
|
|
|
|
b /* Trailing comment */);
|
2015-05-25 22:14:05 +02:00
|
|
|
}
|
2015-07-15 00:38:54 +02:00
|
|
|
|
|
|
|
fn a() {
|
|
|
|
((aaaaaaaa,
|
|
|
|
aaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaaaa,
|
|
|
|
aaaaaaaaaaaaaa),)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn b() {
|
2016-03-14 20:51:06 +13:00
|
|
|
((bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
|
2015-07-15 00:38:54 +02:00
|
|
|
bbbbbbbbbbbbbbbbbb)
|
|
|
|
}
|
2016-09-10 14:02:05 +09:00
|
|
|
|
|
|
|
fn issue550() {
|
2017-03-28 11:25:59 +13:00
|
|
|
self.visitor
|
|
|
|
.visit_volume(self.level.sector_id(sector),
|
|
|
|
(floor_y,
|
|
|
|
if is_sky_flat(ceil_tex) {
|
|
|
|
from_wad_height(self.height_range.1)
|
|
|
|
} else {
|
|
|
|
ceil_y
|
|
|
|
}));
|
2016-09-10 14:02:05 +09:00
|
|
|
}
|
2016-09-20 14:01:35 +09:00
|
|
|
|
|
|
|
fn issue775() {
|
|
|
|
if indent {
|
|
|
|
let a = mk_object(&[("a".to_string(), Boolean(true)),
|
|
|
|
("b".to_string(),
|
|
|
|
Array(vec![mk_object(&[("c".to_string(),
|
|
|
|
String("\x0c\r".to_string()))]),
|
|
|
|
mk_object(&[("d".to_string(),
|
|
|
|
String("".to_string()))])]))]);
|
|
|
|
}
|
|
|
|
}
|