Commit 06fd254
tuple of class
Summary:
Without this change, we don't match the old-refinement behavior w.r.t. supportdyn (https://fburl.com/code/dcmt01jv) (The ~is_class flag determines whether or not we wrap the type in supportdyn)
I noticed this when updating the `as` keyword to behave using the new refinement logic
Differential Revision: D89591115
fbshipit-source-id: 1116fc8d23a6fbf9075229c598c2637ab632ed301 parent 73272c8 commit 06fd254
3 files changed
Lines changed: 31 additions & 5 deletions
File tree
- hphp/hack
- src/typing
- test/typecheck/type_switch
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7993 | 7993 | | |
7994 | 7994 | | |
7995 | 7995 | | |
| 7996 | + | |
| 7997 | + | |
| 7998 | + | |
| 7999 | + | |
| 8000 | + | |
| 8001 | + | |
| 8002 | + | |
7996 | 8003 | | |
7997 | 8004 | | |
7998 | 8005 | | |
| |||
8002 | 8009 | | |
8003 | 8010 | | |
8004 | 8011 | | |
8005 | | - | |
8006 | | - | |
8007 | | - | |
8008 | | - | |
| 8012 | + | |
8009 | 8013 | | |
8010 | 8014 | | |
8011 | 8015 | | |
| |||
8059 | 8063 | | |
8060 | 8064 | | |
8061 | 8065 | | |
| 8066 | + | |
| 8067 | + | |
| 8068 | + | |
| 8069 | + | |
| 8070 | + | |
| 8071 | + | |
8062 | 8072 | | |
8063 | 8073 | | |
8064 | 8074 | | |
8065 | | - | |
| 8075 | + | |
8066 | 8076 | | |
8067 | 8077 | | |
8068 | 8078 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments