// 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. final isLegacySubtyping1a = [] is List; const isLegacySubtyping1b = [] is List; final isLegacySubtyping2a = [] is List; const isLegacySubtyping2b = [] is List; //final assertLegacySubtyping2 = [] as List; const assertLegacySubtyping1 = [] as List; //final assertLegacySubtyping2 = [] as List; const assertLegacySubtyping2 = [] as List; void main() { expect(isLegacySubtyping1a, isLegacySubtyping1b); expect(isLegacySubtyping2a, isLegacySubtyping2b); } expect(expected, actual) { if (expected != actual) throw "Expected $expected, actual $actual"; }