Gains (Losses) on Fair Value Hedges and Related Hedged Items (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Foreign Exchange Contracts | |||
| Derivative Instruments, Gain (Loss) [Line Items] | |||
| Derivatives | $ 38 | $ 25 | $ 441 |
| Hedged items | 130 | 78 | (386) |
| Total amount of ineffectiveness | 168 | 103 | 55 |
| Equity Contracts | |||
| Derivative Instruments, Gain (Loss) [Line Items] | |||
| Derivatives | 0 | (324) | (74) |
| Hedged items | 0 | 324 | 74 |
| Total amount of ineffectiveness | 0 | 0 | 0 |
| Amount of equity contracts excluded from effectiveness assessment | $ 0 | $ 80 | $ (80) |