blob: 03b4b2e06dc9f65429eb9a40b3ff681c425d3daa [file] [log] [blame]
// 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.
// Test verifying that type literals hidden within other constant objects
// are correctly handled by the AOT compiler.
import "package:expect/expect.dart";
class _ClassOnlyUsedAsTypeLiteral {}
void main() {
Expect.isTrue(
(const [_ClassOnlyUsedAsTypeLiteral]).toString().startsWith('['),
);
}