(based on a TDPL example) import std.stdio; interface I { final void foo() {writeln(-1);} } class F : I { void foo(int i = 0) { writeln(i); } } void main() { F f = new F; f.foo(); // prints 0 }
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18370 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB