dmd/compiler/test/fail_compilation/test15785.d
Nick Treleaven 56b14c11ff
Show type location for 'no property' error (#15586)
* Show type location for 'no property' error

* Remove local path from test output
2023-09-08 16:44:42 +03:00

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();
}
}