octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61524] Class methods cannot have a variable n


From: Richard
Subject: [Octave-bug-tracker] [bug #61524] Class methods cannot have a variable named 'methods' (ok in Matlab)
Date: Mon, 22 Nov 2021 07:47:40 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Follow-up Comment #1, bug #61524 (project octave):

oops my last comment was after I changed from a static method to non-static (I
first noticed the issue with a static method), so the correct test (which
still fails) should be:


classdef testMethodVarNameInMethod

    methods
        function suite = test_methods_variable(self)

            methods = [];

        end
    end
end


octave:2> x = testMethodVarNameInMethod
error: parse error near line 6 of file
/home/rcrozier/src/mfiles/mcode-hg/octave_test/testMethodVarNameInMethod.m

  syntax error

>>>             methods = [];


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61524>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]