blob: b0d8246a5f9a9d230decfcd7390f371dfd402b65 [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;
/*kernel.element: typeLiteralToString:[null|subclass=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;
}