blob: 592f5583a05f2428035a8a12e48ab5b73b9e8eb3 [file] [log] [blame]
// Copyright (c) 2020, 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.6
class Class<T> {
final T field;
const Class(this.field);
}
T id<T>(T t) => t;
typedef F1<T> = T Function(T);
typedef F2 = T Function<T>(T);
const c2 = identical;
const int Function(int) partialInstantiation = id;
const instance = const Class<int>(0);
const listLiteral = <int>[0];
const setLiteral = <int>{0};
const mapLiteral = <int, String>{0: 'foo'};
const listConcatenation = <int>[...listLiteral];
const setConcatenation = <int>{...setLiteral};
const mapConcatenation = <int, String>{...mapLiteral};