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