Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Parenthetical) (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Derivatives | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Unrealized gains (losses), tax | $ 2 | $ 11 | $ 4 |
| Net change related to other comprehensive income (loss), tax | (6) | 5 | (5) |
| Investments | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Unrealized gains (losses), tax | 616 | (427) | 267 |
| Net change related to other comprehensive income (loss), tax | 635 | (1,165) | (613) |
| Translation adjustments and other | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Net change related to other comprehensive income (loss), tax | $ (1) | $ 0 | $ 9 |