mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 08:38:23 +00:00
perldelta for 6b628002d8
This commit is contained in:
parent
122500c227
commit
0598e47f33
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user