Summary of Changes in Accumulated Other Comprehensive Income by Component (Parenthetical) (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
|
| Derivatives | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Unrealized gains (losses), tax effects | $ 4 | $ 24 | $ 35 |
| Investments | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Unrealized gains (losses), tax effects | 267 | 120 | 59 |
| Translation adjustments and other | |||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | |||
| Net current period other comprehensive income (loss), tax effects | $ 9 | $ (33) | $ 16 |