Update cyclic alias test

This commit is contained in:
Richard Feldman 2020-06-27 16:49:48 -04:00
parent 5176c7efd4
commit baa3debae2

View file

@ -2409,7 +2409,7 @@ mod test_reporting {
} }
#[test] #[test]
fn circular_alias() { fn cyclic_alias() {
report_problem_as( report_problem_as(
indoc!( indoc!(
r#" r#"
@ -2426,18 +2426,18 @@ mod test_reporting {
r#" r#"
-- CYCLIC ALIAS ---------------------------------------------------------------- -- CYCLIC ALIAS ----------------------------------------------------------------
The `Bar` alias is recursive in an invalid way: The `Foo` alias is recursive in an invalid way:
2 Bar : { y : Foo } 1 Foo : { x : Bar }
^^^^^^^^^^^ ^^^^^^^^^^^
The `Bar` alias depends on itself through the following chain of The `Foo` alias depends on itself through the following chain of
definitions: definitions:
Bar
Foo Foo
Bar
Recursion in aliases is only allowed if recursion happens behind a Recursion in aliases is only allowed if recursion happens behind a