perldelta for 6b628002d8

This commit is contained in:
Tony Cook 2024-04-24 10:26:29 +10:00
parent 122500c227
commit 0598e47f33

View File

@ -203,7 +203,19 @@ and L</New Warnings>
=item *
XXX L<message|perldiag/"message">
L<Cannot create an object of incomplete class "%s"|perldiag/"Cannot create an object of incomplete class "%s"">
(F) An attempt was made to create an object of a class where the start
of the class definition has been seen, but the class has not been
completed.
This can happen for a failed eval, or if you attempt to create an
object at compile time before the class is complete:
eval "class Foo {"; Foo->new; # error
class Bar { BEGIN { Bar->new } }; # error
Previously perl would assert or crash. [github #22159]
=back