marijnh/tern — pull request #271 by sqs (2014-01-12 01:12:19+00:00)
Title: Condenser issue triggered by usage of the "copy" !effect on both an object and its prototype

I've attached a condenser test case that demonstrates an issue that I was able to trigger when using `jQuery.extend` (or any def with a copy !effect). I also included a non-condense test case that demonstrates that tern's inferencer handles this case properly (which suggests the problem is indeed in the condenser).

Here is the test output:

```
$ bin/test proto_methods
condense/proto_methods: Mismatch in condense output. Got {
"!name": "proto_methods",
"A": {
"!span": "9[0:9]-10[0:10]",
"!type": "fn()"
}
}
Expected {
"!name": "proto_methods",
"A": {
"!span": "9[0:9]-10[0:10]",
"!type": "fn()",
"prototype": "A.fn",
"fn": {
"foo": {
"!span": "128[12:2]-131[12:5]",
"!type": "fn() -> number"
}
}
"foo": {
"!span": "59[6:2]-62[6:5]",
"!type": "fn() -> string"
},
}
}
```