From 0b1d1b202667f69de44fe989b3838c06a4a42619 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Jul 2015 00:42:28 -0700 Subject: 1831 --- edit.mu | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/edit.mu b/edit.mu index 7fed9f62..9b63afe4 100644 --- a/edit.mu +++ b/edit.mu @@ -3232,6 +3232,34 @@ recipe foo [ ] ] +scenario run-shows-get-on-non-container-warnings [ + $close-trace + assume-screen 100:literal/width, 15:literal/height + assume-console [ + press 65526 # F10 + ] + run [ + x:address:array:character <- new [ +recipe foo [ + x:address:point <- new point:type + get x:address:point, 1:offset +]] + y:address:array:character <- new [foo] + env:address:programming-environment-data <- new-programming-environment screen:address, x:address:array:character, y:address:array:character + event-loop screen:address, console:address, env:address:programming-environment-data + ] + screen-should-contain [ + . run (F10) . + . ┊ . + .recipe foo [ ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . x:address:point <- new point:type ┊ x. + . get x:address:point, 1:offset ┊foo . + .] ┊foo: 'get' on a non-container x:address:point . + .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . ┊ . + ] +] + ## helpers for drawing editor borders recipe draw-box [ -- cgit 1.4.1-2-gfad0