Closed adlerhsieh closed 7 years ago
I'm not planning support this now. But I think we should provide a more friendly error message.
Now this kind of usages should return error likeUnsupportedMethodError: Unsupported Method #new for <Class:String>
. See: https://github.com/goby-lang/goby/commit/f35bc12b7e37560531c315d73647391faa6eb537
Looks good. It works from my side.
@adlerhsieh Then I'm closing this~
Currently the
#new
method only works for classes users create. It does not work for built-in classes likeString
,Integer
, orHash
.The following is an error message from executing
String.new
: