Update a typing error (re: mixed member access) for markdown support
commit45ef4fbabda6831cc79b8ba9eac7548dd4d1bc29
authorMichael Christensen <michristensen@fb.com>
Wed, 12 Aug 2020 21:14:32 +0000 (12 14:14 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Aug 2020 21:17:35 +0000 (12 14:17 -0700)
treed8e3cea05e2e6fb4fe29ba9e1d587f3dd29ce969
parent0fb835e5194029589baaf3fc6f6d3e1ffb3c9a55
Update a typing error (re: mixed member access) for markdown support

Summary:
Adds emphasis via markdown delimiters to a typing error message about mixed member access.

Before:
```
Typing[4064] You are trying to access the method 'bar' but this is a mixed value. Use a specific class or interface name. [1]
-> Definition is here [2]
```

After:
```
Typing[4064] You are trying to access the method 'bar' but this is a mixed value. Use a **specific** class or interface name. [1]
-> Definition is here [2]
```

This is nice simple example to show how the error formatter handles bold inside the main message (which is always bolded) by converting the desired section to bold italics.

Reviewed By: Wilfred

Differential Revision: D23012943

fbshipit-source-id: 27ac5df23286e489f3c0283c0d38c235a4d78f1b
hphp/hack/src/errors/errors.ml
hphp/hack/test/error_formatting_highlighted/mixed_method_access.php [new file with mode: 0644]
hphp/hack/test/error_formatting_highlighted/mixed_method_access.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/mixed/mixed_member_access.php.exp
hphp/hack/test/typecheck/nonnull/nullsafe_member_access_on_nonnull.php.exp
hphp/hack/test/typecheck/refinements/uninvalidated_fake_member.php.exp