|
|
@@ -1,19 +1,30 @@ |
|
|
/* |
|
|
REQUIRED_ARGS: -de |
|
|
TEST_OUTPUT: |
|
|
--- |
|
|
fail_compilation/fail313.d(15): Error: function fail313.Derived.str return type inference is not supported if may override base class function |
|
|
fail_compilation/fail313.d(17): Deprecation: module imports.b313 is not accessible here, perhaps add 'static import imports.b313;' |
|
|
fail_compilation/fail313.d(24): Deprecation: package core.stdc is not accessible here |
|
|
fail_compilation/fail313.d(24): Deprecation: module core.stdc.stdio is not accessible here, perhaps add 'static import core.stdc.stdio;' |
|
|
fail_compilation/fail313.d(29): Deprecation: package imports.pkg313 is not accessible here, perhaps add 'static import imports.pkg313;' |
|
|
--- |
|
|
*/ |
|
|
module test313; |
|
|
|
|
|
class Base |
|
|
import imports.a313; |
|
|
|
|
|
void test1() |
|
|
{ |
|
|
imports.b313.bug(); |
|
|
import imports.b313; |
|
|
imports.b313.bug(); |
|
|
} |
|
|
|
|
|
void test2() |
|
|
{ |
|
|
abstract int str(); |
|
|
core.stdc.stdio.printf(""); |
|
|
} |
|
|
|
|
|
class Derived : Base |
|
|
void test2() |
|
|
{ |
|
|
override str() |
|
|
{ |
|
|
return "string"; |
|
|
} |
|
|
imports.pkg313.bug(); |
|
|
} |