1
Fork 0

testsuite: Eliminate uses of structural records from most run-pass tests

Except the pipes tests (that needs a snapshot)
This commit is contained in:
Tim Chevalier 2013-01-25 22:46:32 -08:00
parent 413be829eb
commit 6d4907a742
119 changed files with 605 additions and 437 deletions

View file

@ -13,9 +13,12 @@
// -*- rust -*-
// Tests for if as expressions returning structural types
// Tests for if as expressions returning nominal types
struct I { i: int }
fn test_rec() {
let rs = if true { {i: 100} } else { {i: 101} };
let rs = if true { I {i: 100} } else { I {i: 101} };
assert (rs.i == 100);
}