blob: dcb17579d9c72c3d649219262783000b793100da [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice13835.d(15): Error: value of `this` is not known at compile time
fail_compilation/ice13835.d(21): Error: template instance `ice13835.Foo!int` error instantiating
---
*/
class Foo(T)
{
private T* _data;
final private void siftUp(int position) nothrow
{
static T crash = *(this._data + position);
}
}
void main()
{
auto heap = new Foo!(int);
}