Commit graph

5 commits

Author SHA1 Message Date
Nick Treleaven
a7f6b04a0c
Don't allow short constructor with non-void expression except this() and super() (#17489) 2024-12-08 17:21:42 +08:00
Dennis Korpel
56eb579a45 Allow shortened method syntax for constructors 2024-12-04 12:16:44 +01:00
mhh
e3eccfe9a5 Fix Issue 24088 - Nested functions using the shortened syntax were not recognized correctly as declarations.
The fix was simply to amend `isDeclarator` to look for TOK.goesTo (i.e. `=>`)
2023-08-17 12:33:04 +02:00
mhh
81f5c8b354 Enable shortened methods by default
The preview flag will still work but will print a deprecation message
2022-10-11 01:41:29 +09:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00
Renamed from test/compilable/shortened_methods.d (Browse further)