Permalink
Browse files

Fix defined? for a private predicate

Fixes #1618.
  • Loading branch information...
1 parent e0d2bdb commit c35e7f6749a1d4c71cd6308eea21ed5120c6ca31 @jfirebaugh jfirebaugh committed Mar 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/compiler/ast/sends.rb
View
2 lib/compiler/ast/sends.rb
@@ -79,7 +79,7 @@ def defined(g)
g.push_literal @name
- if @vcall_style
+ if @vcall_style or @privately
g.push :true
g.send :__respond_to_p__, 2
else

0 comments on commit c35e7f6

Please sign in to comment.