Jinseong Jeon | 5bde871 | 2018-04-25 09:36:04 -0700 | [diff] [blame] | 1 | // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | package regress_77944861; |
| 5 | |
| 6 | import regress_77944861.inner.TopLevelPolicy; |
| 7 | import regress_77944861.inner.TopLevelPolicy.MobileIconState; |
| 8 | |
| 9 | public class SomeView { |
| 10 | |
| 11 | public static String get(MobileIconState state) { |
| 12 | // Field read context. TopLevelPolicy$IconState is not accessible in this context. |
| 13 | return state.description; |
| 14 | } |
| 15 | |
| 16 | public static void main(String[] args) { |
| 17 | MobileIconState state = new MobileIconState(); |
| 18 | TopLevelPolicy.set(state, "foo"); |
| 19 | System.out.println(get(state)); |
| 20 | } |
| 21 | } |
| 22 | |