Home | History | Annotate | Download | only in instanceofstring
      1 // Copyright (c) 2016, 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 instanceofstring;
      5 
      6 class InstanceofString {
      7   public static void main(String[] args) {
      8     String s = "foobar";
      9     System.out.println("is-string:" + (s instanceof String));
     10   }
     11 }
     12