Skip to content

Commit

Permalink
fix Issue 13985 - Wrong code when using "super" to call final interfa…
Browse files Browse the repository at this point in the history
…ce method
  • Loading branch information
9rnsr committed Apr 2, 2015
1 parent 7d4f57e commit 4ebacd3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/runnable/xtest46.d
Expand Up @@ -7375,6 +7375,42 @@ class Foo14165
this(int i) {}
}

/***************************************************/
// 13985

interface I13985
{
void m1();
void m2();
void m3();

final void mf()
{
m3();
}
}

class C13985 : I13985
{
void m1() {}
void m2() {}
void m3() {}
}

class D13985 : C13985
{
void ml()
{
super.mf();
}
}

void test13985()
{
auto d = new D13985();
d.ml();
}

/***************************************************/
// 14211

Expand Down Expand Up @@ -7704,6 +7740,7 @@ int main()
test13472();
test13476();
test13952();
test13985();
test14211();

printf("Success\n");
Expand Down

0 comments on commit 4ebacd3

Please sign in to comment.