Skip to content

in-generator breaks for value-less yields #105

Closed
racket-bug-submit opened this Issue Mar 8, 2012 · 3 comments

2 participants

@racket-bug-submit
Collaborator
Originally submitted by Jay McCarthy jay@racket-lang.org on: Mon Aug 23 21:44:01 -0400 2010

Welcome to DrRacket, version 5.0.1.3--2010-08-02(-/f) [3m].
Language: racket; memory limit: 256 MB.
. . test: 1/1 test failures:
unsaved-editor814:6:1: test failure in '(for/list ((() (in-generator (yield))) (i (in-naturals))) i)
expected: '(0)
got: error: car: expects argument of type ; given '()

Steps to Reproduce:

#lang racket
(require racket/generator
tests/eli-tester)

(test
(for/list ([() (in-generator (yield))]
[i (in-naturals)])
i)
=>
(list 0))

Release:

5.0.1.3--2010-08-02(-/f)

Environment:

macosx "Darwin jay-mccarthys-macbook.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386" (i386-macosx/3m) (get-display-depth) = 32
Human Language: english
(current-memory-use) 149370084

Collections:
(("/Users/jay/Library/Racket/5.0.1.3/collects" non-existent-path) ("/Users/jay/Dev/scm/plt/collects" ".gitignore" "2htdp" "afm" "algol60" "at-exp" "browser" "combinator-parser" "compiler" "config" "datalog" "defaults" "deinprogramm" "drracket" "drscheme" "dynext" "embedded-gui" "eopl" "errortrace" "ffi" "file" "framework" "frtime" "games" "graphics" "gui-debugger" "guibuilder" "handin-client" "handin-server" "help" "hierlist" "honu" "htdp" "html" "icons" "info-domain" "lang" "launcher" "lazy" "macro-debugger" "make" "meta" "mred" "mrlib" "mysterx" "mz" "mzcom" "mzlib" "mzscheme" "net" "openssl" "parser-tools" "plai" "planet" "plot" "preprocessor" "profile" "r5rs" "r6rs" "racket" "racklog" "rackunit" "raclog" "raco" "racunit" "reader" "readline" "redex" "repo-time-stamp" "repos-time-stamp" "rico" "rktunit" "rnrs" "s-exp" "schelog" "scheme" "schemeunit" "scribble" "scribblings" "scriblib" "setup" "sgl" "sirmail" "slatex" "slideshow" "srfi" "srpersist" "stepper" "string-constan!
ts" "swindle" "syntax" "syntax-color" "teachpack" "test-box-recovery" "test-engine" "tests" "tex2page" "texpict" "trace" "typed" "typed-scheme" "unstable" "version" "waterworld" "web-server" "wxme" "xml"))
Computer Language: (("Determine language from source") (#(#t print mixed-fraction-e #f #t debug) (default) #() "#lang racket\n" #t))

This bug was converted from Gnats bug 11123.

[anon-submit jay AT racket-lang.org]

@racket-bug-submit
Collaborator
On Tue, 24 Aug 2010 02:16:39 -0400, rafkind@racket-lang.org assigned this bug to rafkind

A commit by rafkind@racket-lang.org has resolved this report
http://git.racket-lang.org/plt/commit/e077b87d50

@racket-bug-submit
Collaborator
On Tue, 24 Aug 2010 02:16:39 -0400, rafkind@racket-lang.org wrote:

A commit by rafkind@racket-lang.org has resolved this report
http://git.racket-lang.org/plt/commit/e077b87d50

@elibarzilay
Collaborator

:1:
:2:
:3:
:12:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.