pylint #5626 name resolution bug inside classes [resolved]

I noticed that pylint is not accepting the use of class members as arguments to decorators inside the class, example:

def decorator(value):
   def wrapper(function):
        return function
   return wrapper

class foo:
  member = 10

  @decorator(member) #This will cause pylint to complain
  def test(self):
       pass

pylint will complain about "Undefined variable 'member'"

while:

@decorator(foo.member)
def test(self):
     pass

Will work according to pylint.

However the first case works in python while the second one doesn't.

priorityimportant
typebug
done in0.16.0
load0.300
load left0.000
closed by<not specified>