New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classify falsely classifies parent if child class has no .valid? method #23

birchb1024 opened this Issue Aug 29, 2018 · 0 comments


None yet
1 participant

birchb1024 commented Aug 29, 2018

$ genyris
*** Welcome bbirch1, Genyris version 0.9.4-12-g7a00c27-0, home /mnt/virtualdisk2/wo/genyris is listening...
> class A()
:   def .valid?(o) (is-instance? o String)
<class A (Thing)> # StandardClass 
> class B(A)
<class B (A)> # StandardClass 
> include 'lib/classify.g'
'/mnt/virtualdisk2/wo/genyris/lib/classify.g' # String 
> var foo 'w'
'w' # String 
> classify A foo
true # SimpleSymbol 
> foo
'w' # B String 

classify has incorrectly ascribed 'w' to class 'B'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment