Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nolta committed Mar 20, 2013
1 parent 413fbf9 commit 17149c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@
(loop (list* 'ref ex (cdr al)))))
((comprehension)
(loop (list* 'typed_comprehension ex (cdr al))))
((dict-comprehension)
((dict_comprehension)
(loop (list* 'typed_dict_comprehension ex (cdr al))))
(else (error "unknown parse-cat result (internal error)"))))))
((|.|)
Expand Down
4 changes: 4 additions & 0 deletions test/corelib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ d = {x => 1
for x in ['a', 'b', 'c']}
@test d == {'a'=>1, 'b'=>1, 'c'=> 1}

# issue #2629
d = (String => String)[ a => "foo" for a in ["a","b","c"]]
@test d == ["a"=>"foo","b"=>"foo","c"=>"foo"]

# ############# end of dict tests #############

# #################### set ####################
Expand Down

0 comments on commit 17149c6

Please sign in to comment.