blob: 5cf1472bfa1e37fc6bfb3642cf7ad9f6c87f20d8 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
abstract class I extends core::Object {
synthetic constructor •() void
: super core::Object::•()
;
abstract method interfaceMethod() dynamic;
}
class C extends core::Object implements self::I {
synthetic constructor •() void
: super core::Object::•()
;
method noSuchMethod(core::Invocation _) dynamic
return "C";
no-such-method-forwarder method interfaceMethod() dynamic
return this.{self::C::noSuchMethod}(new core::_InvocationMirror::_withoutType("interfaceMethod", const <core::Type>[], const <dynamic>[], core::Map::unmodifiable<core::Symbol, dynamic>(const <core::Symbol, dynamic>{}), false)) as{TypeError} dynamic;
}
class D extends self::C {
synthetic constructor •() void
: super self::C::•()
;
method noSuchMethod(core::Invocation _) dynamic
return "D";
method dMethod() dynamic
return super.{self::C::interfaceMethod}();
}
static method main() dynamic {
dynamic result = new self::D::•().{self::D::dMethod}();
if(!result.{core::Object::==}("D"))
throw "Expected 'D' but got: '${result}'";
}