From 470a6fe7f987f7c5e5c1fa7b6b31956479ababed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 23 Jul 2018 14:40:20 -0700 Subject: Fixed blocks starting with extra newline when they start with a comment. --- lib/object.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/object.nom b/lib/object.nom index e78eb14..10b0afa 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -13,7 +13,7 @@ test: return (%barks joined with " ") method [get pissed off] ((me).barks += 1) - + %d = (new Dog {barks:2}) as %d: assume ((me) == %d) @@ -24,7 +24,7 @@ test: assume ((me).barks == 3) assume ((bark) == "Bark! Bark! Bark!") assume ((me).genus == "Canus") - + assume ("\(%d.class)" == "Dog") assume (%d.genus == "Canus") assume (%d.barks == 3) @@ -36,7 +36,7 @@ test: try (as (new Dog {barks:8}) (barf)) and if it succeeds (barf) assume ((me).barks == 101) or barf ".." Error in nested 'as % %' failed to properly reset 'self' - + object "Corgi" extends (class Dog) (method [sploot] "splooted") %corg = (new Corgi) assume (%corg.barks == 0) -- cgit v1.2.3