Primary factory method should return a new instance #333
Labels
bug
Fixes an issue, incorrect implementation
good first issue
Are you trying to have a good at SOMns? Start here!
help wanted
Would be great if you could help out here.
(Same issue than in Newspeak, see https://groups.google.com/forum/#!msg/newspeaklanguage/PJeOLjxq_yA/ND3Jel_nAQAJ)
As per Newspeak spec, a call to a primary factory method should return a new instance of a given class. Sometimes it doesn't, as in:
where a call to
WhatDoesNewReturn new
will returnnil
instead of an instance ofWhatDoesNewReturn
.The text was updated successfully, but these errors were encountered: