mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
29 lines
589 B
D
29 lines
589 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice13081.d(17): Error: undefined identifier `node`
|
|
fail_compilation/ice13081.d(17): Error: undefined identifier `data`
|
|
fail_compilation/ice13081.d(17): Error: undefined identifier `node`
|
|
fail_compilation/ice13081.d(28): Error: template instance `ice13081.Cube!(SparseDataStore)` error instantiating
|
|
---
|
|
*/
|
|
|
|
struct Cube(StorageT)
|
|
{
|
|
StorageT datastore;
|
|
alias datastore this;
|
|
auto seed()
|
|
{
|
|
this[] = node.data ? data : node.data;
|
|
}
|
|
}
|
|
|
|
class SparseDataStore
|
|
{
|
|
auto opSlice() {}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
Cube!SparseDataStore c;
|
|
}
|