Fixing string keys in pattern matching on objects (ticket 325)

This commit is contained in:
Jeremy Ashkenas
2010-04-25 11:07:09 -04:00
parent 212ad45be4
commit 08c877ec7b
3 changed files with 13 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ ok c is 30
person: {
name: "Moe"
family: {
brother: {
'elder-brother': {
addresses: [
"first"
{
@@ -68,7 +68,7 @@ person: {
}
}
{name: a, family: {brother: {addresses: [one, {city: b}]}}}: person
{name: a, family: {'elder-brother': {addresses: [one, {city: b}]}}}: person
ok a is "Moe"
ok b is "Moquasset NY, 10021"