mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 02:24:57 -05:00
Fixing string keys in pattern matching on objects (ticket 325)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user