mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
426 B
D
20 lines
426 B
D
// EXTRA_FILES: imports/test15785.d
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test15785.d(17): Error: no property `foo` for `super` of type `imports.test15785.Base`
|
|
fail_compilation/imports/test15785.d(3): class `Base` defined here
|
|
fail_compilation/test15785.d(18): Error: undefined identifier `bar`
|
|
---
|
|
*/
|
|
|
|
import imports.test15785;
|
|
|
|
class Derived : Base
|
|
{
|
|
void test()
|
|
{
|
|
super.foo();
|
|
bar();
|
|
}
|
|
}
|