blob: 6bacdb04e489d4d71192f8b839d3374df1a6f906 [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);
}