X-Git-Url: http://nitlanguage.org diff --git a/src/parser_util.nit b/src/parser_util.nit index 69a170c..1e11840 100644 --- a/src/parser_util.nit +++ b/src/parser_util.nit @@ -85,11 +85,11 @@ redef class ToolContext # Parse a super class declaration # Fatal error if the `string` is not a syntactically correct super class declaration - fun parse_superclass(string: String): ASuperclass + fun parse_superclass(string: String): APropdef do var mod_string = "class Dummy\nsuper {string}\nend" var nclassdef = parse_classdef(mod_string).as(AStdClassdef) - var nsuperclasses = nclassdef.n_superclasses + var nsuperclasses = nclassdef.n_propdefs if nsuperclasses.length != 1 then self.fatal_error(null, "Fatal Error: not a super class declaration") abort