diff --git a/lib/ast.js b/lib/ast.js index 1635bb6fd..994e25744 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -2152,7 +2152,8 @@ exports.Fun = Fun = (function(superclass){ } function ctor$(){} ctor$.prototype = prototype; prototype.children = ['params', 'body']; prototype.show = function(){ - return this.bound; + var that; + return [this.name] + [(that = this.bound) ? "~" + that : void 8]; }; prototype.named = function(it){ return this.name = it, this.statement = true, this; diff --git a/src/ast.co b/src/ast.co index a6bb44652..07ef26eee 100644 --- a/src/ast.co +++ b/src/ast.co @@ -1310,7 +1310,7 @@ class exports.Fun extends Node children: <[ params body ]> - show: -> @bound + show: -> [@name] + ["~#that" if @bound] named: -> import {name: it, +statement}