|
3 | 3 |
|
4 | 4 |
|
5 | 5 | T1 := Rectangle { |
6 | | -// ^warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
| 6 | +// ><warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
7 | 7 | property <int> foo; |
8 | 8 | property <int> bar: foo; |
9 | | -// ^error{The binding for the property 'bar' is part of a binding loop (foo -> bar)} |
| 9 | +// > <error{The binding for the property 'bar' is part of a binding loop (foo -> bar)} |
10 | 10 | Text { text: bar; } |
11 | 11 | } |
12 | 12 |
|
13 | 13 | T2 := Rectangle { |
14 | | -// ^warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
| 14 | +// ><warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
15 | 15 | property <string> t2_text; |
16 | 16 | t:= Text { text: t2_text; } |
17 | | -// ^error{The binding for the property 'text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
18 | | -// ^^error{The binding for the property 'text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 17 | +// > <error{The binding for the property 'text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 18 | +// > <^error{The binding for the property 'text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
19 | 19 | property t_alias <=> t.text; |
20 | | -// ^error{The binding for the property 't-alias' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
21 | | -// ^^error{The binding for the property 't-alias' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 20 | +// > <error{The binding for the property 't-alias' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 21 | +// > <^error{The binding for the property 't-alias' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
22 | 22 | } |
23 | 23 |
|
24 | 24 | T3 := Rectangle { |
25 | | -// ^warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
| 25 | +// ><warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
26 | 26 | property <string> hello; |
27 | 27 | property <string> al <=> a.t_alias; |
28 | | -// ^error{The binding for the property 'al' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 28 | +// > <error{The binding for the property 'al' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
29 | 29 | HorizontalLayout { |
30 | 30 | a := T2 { t2_text: b.t_alias; } |
31 | | -// ^error{The binding for the property 't2-text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 31 | +// > <error{The binding for the property 't2-text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
32 | 32 | b := T2 { t2_text: root.hello; } |
33 | | -// ^error{The binding for the property 't2-text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 33 | +// > <error{The binding for the property 't2-text' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
34 | 34 | } |
35 | 35 | } |
36 | 36 |
|
37 | 37 | T4 := Rectangle { |
38 | | -// ^warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
| 38 | +// ><warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
39 | 39 | property <length> my_property <=> x; |
40 | 40 | } |
41 | 41 |
|
42 | 42 | export App := Rectangle { |
43 | | -// ^warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
| 43 | +// ><warning{':=' to declare a component is deprecated. The new syntax declare components with 'component MyComponent {'. Read the documentation for more info} |
44 | 44 |
|
45 | 45 |
|
46 | 46 | VerticalLayout { |
47 | 47 | T1 { foo: 44; } |
48 | 48 | T1 { foo: bar; } |
49 | | -// ^error{The binding for the property 'foo' is part of a binding loop (foo -> bar)} |
| 49 | +// > <error{The binding for the property 'foo' is part of a binding loop (foo -> bar)} |
50 | 50 | T3 { hello: al; } |
51 | | -// ^error{The binding for the property 'hello' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
| 51 | +// > <error{The binding for the property 'hello' is part of a binding loop (hello -> b.t2-text -> t.text -> b.t-alias -> a.t2-text -> t.text -> a.t-alias -> al)} |
52 | 52 |
|
53 | 53 | T4 { my_property: my_property; } |
54 | | -// ^error{Property 'my-property' cannot refer to itself} |
| 54 | +// > <error{Property 'my-property' cannot refer to itself} |
55 | 55 | } |
56 | 56 | } |
0 commit comments