Mercurial > octave
changeset 23641:be69ea3de7a3
Backed out changeset 2208cc0e89a3
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 18 Jun 2017 22:26:07 -0400 |
parents | 037d65ae2b60 |
children | 18ae8d3c745b |
files | libinterp/parse-tree/oct-parse.in.yy |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy Sun Jun 18 22:25:21 2017 -0400 +++ b/libinterp/parse-tree/oct-parse.in.yy Sun Jun 18 22:26:07 2017 -0400 @@ -3431,7 +3431,7 @@ else if (curr_fcn_depth == 1) fcn_scope->update_nest (); - if (! (lexer.reading_classdef_file || lexer.reading_fcn_file)) + if (! lexer.reading_fcn_file && curr_fcn_depth == 1) { // We are either reading a script file or defining a function // at the command line, so this definition creates a