Skip to content

Commit 7613807

Browse files
committed
Some more .of -> .VAR.of I missed
1 parent 7b2783d commit 7613807

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

S09-typed-arrays/arrays.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plan 61;
77

88
{
99
my Int @x;
10-
ok @x.of === Int, '@x.of of typed array (my Int @x)';
10+
ok @x.VAR.of === Int, '@x.VAR.of of typed array (my Int @x)';
1111
# RT #77748
1212
ok @x.WHAT.gist ~~ /Array/, '.WHAT.gist of the type object makes sense';
1313
lives_ok { @x = 1, 2, 3 }, 'can assign values of the right type';
@@ -81,7 +81,7 @@ plan 61;
8181

8282
{
8383
my Array of Int @x;
84-
ok @x.of === Array[Int], 'my Array of Int @x declares a nested array';
84+
ok @x.VAR.of === Array[Int], 'my Array of Int @x declares a nested array';
8585
#?rakudo skip "nested typechecks are borked"
8686
lives_ok { @x = [2, 3], [5, 6] }, 'assignment works';
8787
#?rakudo todo "nested typechecks are borked"
@@ -98,14 +98,14 @@ plan 61;
9898
my Int @b;
9999
lives_ok { @b = @a }, 'can assign typed array to typed array';
100100
#?rakudo todo 'need parameterized Lists'
101-
ok @a.values.of.WHICH eqv Int.WHICH, '@a.values is typed (1)';
101+
ok @a.values.VAR.of.WHICH eqv Int.WHICH, '@a.values is typed (1)';
102102
lives_ok { @b = @a.values }, '@a.values is typed (2)';
103103
} #3
104104

105105
#?rakudo skip 'initialization'
106106
{
107107
my Str @c = <foo bar baz>;
108-
ok @c.keys.of.WHICH eqv Str.WHICH, '@array.keys is typed with Str';
108+
ok @c.keys.VAR.of.WHICH eqv Str.WHICH, '@array.keys is typed with Str';
109109
} #1
110110

111111
# test that we can have parametric array return types

0 commit comments

Comments
 (0)