mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
21 lines
394 B
D
21 lines
394 B
D
// REQUIRED_ARGS: -de
|
|
// EXTRA_FILES: imports/test15897.d
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test15897.d(20): Error: no property `create` for `cat` of type `imports.test15897.Cat`
|
|
fail_compilation/imports/test15897.d(4): class `Cat` defined here
|
|
---
|
|
*/
|
|
module test15897;
|
|
import imports.test15897;
|
|
|
|
class Animal
|
|
{
|
|
private void create() {}
|
|
}
|
|
|
|
void foo(Cat cat)
|
|
{
|
|
cat.create();
|
|
}
|