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

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

[Octave-bug-tracker] [bug #60489] Erroneous duplicate declaration does n


From: PIERRE LABRECHE
Subject: [Octave-bug-tracker] [bug #60489] Erroneous duplicate declaration does not generate an error
Date: Fri, 30 Apr 2021 17:40:26 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60489>

                 Summary: Erroneous duplicate declaration does not generate an
error
                 Project: GNU Octave
            Submitted by: pierre5018
            Submitted on: ven. 30 avril 2021 21:40:24 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: PIERRE LABRECHE
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Octave fails to report an error or a warning when a class declares the same
method twice.

Example:


classdef toto
  properties
    a
  endproperties

  methods 
    function obj = toto (a)
      obj.a = a
    endfunction
    
    # double declaration is not flagged as error or warning
    function obj = toto (a)
      obj.a = 50 ;
    endfunction
    
  endmethods
endclassdef





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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