Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roast rakudo skip/todo test:./S06-operator-overloading/sub.t line:231 reason: 'infix Z will never work; no lexical Z' #4131

Open
p6rt opened this issue May 3, 2015 · 2 comments

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

Migrated from rt.perl.org#124983 (status was 'open')

Searchable as RT124983$

@p6rt
Copy link
Author

p6rt commented Dec 7, 2017

From @tisonkun

1. now it's moved to S06-operator-overloading/infix.t

2. note that default Left-associative works, this ticket in fact about
reserved words. See the example below​:

```
{
  my sub infix​:<Z> ($a, $b) {
  $a ** $b;
  }
  is (2 Z 1 Z 2), 4, "default Left-associative works.";
}
# Calling infix​:<Z>(Int, Int, Int) will never work with declared signature
($a, $b)
```

```
{
  my sub infix​:<B> ($a, $b) {
  $a ** $b;
  }
  is (2 B 1 B 2), 4, "default Left-associative works.";
}
# ok
```

```
{
  my sub infix​:<.> ($a, $b) {
  $a ** $b;
  }
  is (2 . 1 . 2), 4, "default Left-associative works.";
}
# Unsupported use of . to concatenate strings; in Perl 6 please use ~
```

```
{
  my sub infix​:<~> ($a, $b) {
  $a ** $b;
  }
  is (2 ~ 1 ~ 2), 4, "default Left-associative works.";
}
# ok
```

```
{
  my sub infix​:<@​> ($a, $b) {
  $a ** $b;
  }
  is (2 @​ 1 @​2), 4, "default Left-associative works.";
}
# ok
```

@p6rt
Copy link
Author

p6rt commented Dec 7, 2017

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant