blob: aa53235ce94e577b7500fa3c7e518ad45d130d5d [file] [log] [blame]
// Copyright (c) 2021, 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.
import 'dart:convert';
const keepToString = pragma('flutter:keep-to-string');
const keepToStringInSubtypes = pragma('flutter:keep-to-string-in-subtypes');
String toString() => 'I am static';
abstract class IFoo {
String toString();
class Foo implements IFoo {
String toString() => 'I am a Foo';
enum FooEnum { A, B, C }
class Keep {
String toString() => 'I am a Keep';
class Base1 {}
class Base2 extends Base1 {}
class Base3 extends Object with Base2 {}
class KeepInherited implements Base3 {
String toString() => 'Heir';
class MyException implements Exception {
String toString() => 'A very detailed message';
void main() {
final IFoo foo = Foo();