mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Fix bugzilla 24803 - __traits(location) is inconsistent with modules
This commit is contained in:
parent
2db13b18d4
commit
00df883e9f
10 changed files with 17 additions and 34 deletions
|
@ -1,8 +1,9 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/trait_loc_err.d(13): Error: can only get the location of a symbol, not `trait_loc_err`
|
||||
fail_compilation/trait_loc_err.d(14): Error: can only get the location of a symbol, not `stdc`
|
||||
fail_compilation/trait_loc_err.d(14): Error: can only get the location of a symbol, not `trait_loc_err`
|
||||
fail_compilation/trait_loc_err.d(15): Error: can only get the location of a symbol, not `core.stdc`
|
||||
fail_compilation/trait_loc_err.d(16): Error: can only get the location of a symbol, not `core.stdc.stdio`
|
||||
---
|
||||
*/
|
||||
module trait_loc_err;
|
||||
|
@ -12,4 +13,5 @@ void main()
|
|||
{
|
||||
__traits(getLocation, __traits(parent, main));
|
||||
__traits(getLocation, __traits(parent, core.stdc.stdio));
|
||||
__traits(getLocation, core.stdc.stdio);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue