blob: 48f1ce86d644e6dfd8c566d41b6989d1ce030aab [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.
/*member: main:[null]*/
main() {
typeLiteral();
typeLiteralToString();
typeLiteralSubstring();
}
/*member: typeLiteral:[exact=_Type]*/
typeLiteral() => Object;
/*member: typeLiteralToString:[null|exact=JSString]*/
typeLiteralToString() => (Object). /*invoke: [exact=_Type]*/ toString();
/*member: typeLiteralSubstring:[exact=JSString]*/
typeLiteralSubstring() {
String name = (List). /*invoke: [exact=_Type]*/ toString();
name = name. /*invoke: [null|exact=JSString]*/ substring(
0, name. /*invoke: [null|exact=JSString]*/ indexOf('<'));
return name;
}