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

dart2js: VariableMirror.type always returns: TypeMirror on 'dynamic' #12022

Closed
DartBot opened this issue Jul 25, 2013 · 11 comments
Closed

dart2js: VariableMirror.type always returns: TypeMirror on 'dynamic' #12022

DartBot opened this issue Jul 25, 2013 · 11 comments
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@DartBot
Copy link

DartBot commented Jul 25, 2013

This issue was originally filed by ross.dart....@gmail.com


r25462
Windows 7x64

Consider the following program:

/////////////////////////////////////////////////
import 'dart:mirrors';

class A {
  int i = 42;
}

main() {
  ClassMirror cm = reflectClass(A);
  VariableMirror vm = cm.variables[const Symbol('i')];
  print('${vm.type}');
}
/////////////////////////////////////////////////

In the vm this prints:

ClassMirror on 'int'

In dart2js this prints:

TypeMirror on 'dynamic'

/////////////////////////////////////////////////
thanks,

@madsager
Copy link
Contributor

Added Area-Dart2JS, Triaged labels.

@peter-ahe-google
Copy link
Contributor

Set owner to @peter-ahe-google.
Added Library-Mirrors, Accepted labels.

@peter-ahe-google
Copy link
Contributor

Marked this as blocking #6490.

@kasperl
Copy link

kasperl commented Sep 18, 2013

Added this to the M7 milestone.

@kasperl
Copy link

kasperl commented Sep 30, 2013

Removed Priority-Unassigned label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Oct 2, 2013

Removed this from the M7 milestone.
Added this to the M8 milestone.

@DartBot
Copy link
Author

DartBot commented Jan 10, 2014

This comment was originally written by ross.dart...@gmail.com


Hi Peter,

In SDK 1.1.0.dev_05_0 this appears to now work (woot!); can you confirm that it is now fixed or are there known limitations still?

thanks

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the M8 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed accepted labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Mar 3, 2018
@matanlurey
Copy link
Contributor

Mirrors is no longer supported in Dart2JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

6 participants