mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
413 B
D
22 lines
413 B
D
/*
|
|
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);
|
|
}
|