library;
import self as self;
import "dart:core" as core;

class Foo extends core::Object {
  static field dynamic _redirecting# = <dynamic>[self::Foo::•];
  constructor named(dynamic p) → self::Foo*
    : super core::Object::•()
    ;
  @#C1
  static factory •(@#C2 @#C3 dynamic p) → self::Foo*
    let<BottomType> #redirecting_factory = self::Foo::named in invalid-expression;
  abstract member-signature get _identityHashCode() → core::int*;
  abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*;
  abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*;
  abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*;
  abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*;
  abstract member-signature operator ==(dynamic other) → core::bool*;
  abstract member-signature get hashCode() → core::int*;
  abstract member-signature method toString() → core::String*;
  abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic;
  abstract member-signature get runtimeType() → core::Type*;
}
static const field core::int* forParameter = #C2;
static const field core::int* forFactoryItself = #C1;
static const field core::int* anotherForParameter = #C3;
static method main() → dynamic {}

constants  {
  #C1 = 2
  #C2 = 1
  #C3 = 3
}
