// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // @dart=2.9 library main; import 'dart:io' show File, Process, exit; List listOfStrings = ["hello"]; int doitstat(int x) => x + 1; int _privateToplevel(int x) => x + 1; int globalVar = 6; int _globalPrivate = 7; const ConstClass const42 = ConstClass(42); class ConstClass { static const ConstClass classConst42 = ConstClass(42); final int x; const ConstClass(this.x); } class A { const A(); static int doit(int x) => x + 1; static int staticVar = 3; int doit_with_this(int x) => x + 1; final int _priv = 0; void _privMethod() {} } T id(T x) => x; class B extends A { int x; final int y = 7; int _priv; String get z { return ""; } void set z(_) {} void _privMethod() {} } class Bound {} class HasPrivate { int _priv = 0; } class C extends HasPrivate {} void hasBound() {} Object k; class D { Y id(Y x) => x; m(List l) { assert(l is List); } foo() { List s; } } abstract class Built, B extends Builder> {} abstract class Builder, B extends Builder> {} class MiddlewareApi, StateBuilder extends Builder> {} main() { exit(0); }