Commit graph

2 commits

Author SHA1 Message Date
Nick Treleaven
4a5c56d0f7 [next edition] Error when aliasing a method of a variable
https://dlang.org/spec/legacy#alias-instance-member

Also only error when the member actually needs `this`.
Show kind and name of member in error message.
2024-08-27 01:51:33 +02:00
Nick Treleaven
56a0ea80b1
Fix Bugzilla 14128 - AliasDeclaration allows expressions, causing false … (#15863)
* Fix Issue 14128 - AliasDeclaration allows expressions, causing false code for ThisExp

* Add test case

* Fix deprecation comment

* Add changelog

* Use dummy out param, not null

* Change to error with __edition_latest_do_not_use
2024-04-19 17:55:31 +03:00