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