blob: 483dd77ac79e1cfe47e0d937aea209e6f3ade5e2 [file] [log] [blame]
Jinseong Jeon5bde8712018-04-25 09:36:04 -07001// 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.
4package regress_77944861;
5
6import regress_77944861.inner.TopLevelPolicy;
7import regress_77944861.inner.TopLevelPolicy.MobileIconState;
8
9public 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