Implemented allocating storage for a slice if its address is taken, fixes #115

This commit is contained in:
Tomas Lindquist Olsen
2008-12-02 01:20:22 +01:00
parent c62b31a357
commit 91a2c257b0
2 changed files with 20 additions and 2 deletions

5
tests/mini/slices2.d Normal file
View File

@@ -0,0 +1,5 @@
void main()
{
int[10] arr = void;
int[]* ptr = &arr[1..3];
}