Gains (Losses) on Fair Value Hedges and Related Hedged Items (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2018 |
Mar. 31, 2017 |
Mar. 31, 2018 |
Mar. 31, 2017 |
|
| Foreign Exchange Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Derivatives | $ (260) | $ (248) | $ (224) | $ 389 |
| Hedged items | 288 | 257 | 298 | (349) |
| Total amount of ineffectiveness | 28 | 9 | 74 | 40 |
| Equity Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Derivatives | 126 | (19) | (181) | (36) |
| Hedged items | (126) | 19 | 181 | 36 |
| Total amount of ineffectiveness | 0 | 0 | 0 | 0 |
| Amount of equity contracts excluded from effectiveness assessment | $ 0 | $ (25) | $ 60 | $ (29) |