[Issue 22156] New: Can't use all-types slice of not-all-types AliasSeq as type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 28 19:08:08 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22156

          Issue ID: 22156
           Summary: Can't use all-types slice of not-all-types AliasSeq as
                    type
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: Ajieskola at gmail.com

```d
import std;
AliasSeq!(int, 0)[0..1] a;
```

This should compile, but it does not:
```
app.d(2): Error: `AliasSeq!(int, 0)` is used as a type
app.d(2): Error: can only slice tuple types, not `_error_`
```

--


More information about the Digitalmars-d-bugs mailing list