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