Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstanceInvokeMetaCapability doesn't let you invoke methods on super classes/mixins #40

Closed
jakemac53 opened this issue Oct 2, 2015 · 0 comments · Fixed by #41
Closed
Labels

Comments

@jakemac53
Copy link
Contributor

For example the following throws when it shouldn't.

import 'package:reflectable/reflectable.dart';

class MyReflectable extends Reflectable {
  const MyReflectable()
      : super(const InstanceInvokeMetaCapability(IsReflectable));
}

const myReflectable = const MyReflectable();

class IsReflectable {
  const IsReflectable();
}

@myReflectable
class A {
  @IsReflectable()
  String get hello => 'world';
}

@myReflectable
class B extends A {}

main() {
  var instance = new B();
  var instanceMirror = myReflectable.reflect(instance);
  print(instanceMirror.invokeGetter('hello'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants